簡體   English   中英

將Android應用限制為非常具體的分辨率和屏幕尺寸

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM