[英]Restrict Android app to very specific resolutions and screen sizes
在我的應用中,我計划僅支持幾種特定的屏幕尺寸和分辨率,它們是:
如何限制我的應用只能在這些屏幕上安裝? 是AndroidManifest.xml
,還是開發者控制台中的內容,或兩者都存在?
您可以通過manifest.xml文件中的添加標志來應用: http : //developer.android.com/guide/topics/manifest/supports-screens-element.html並且可以通過以下方式進行限制:您應該在mainfest android:largestWidthLimitDp="enter mobile pixel value which above you want restrict."
使用此屬性android:largestWidthLimitDp="enter mobile pixel value which above you want restrict."
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.