![](/img/trans.png)
[英]how can i design for android multiple screens most exactly for Galaxy Nexus (720x1280) and Nexus 4(768x1280)?
[英]How do i put compatiable screens for nexus 6
我正在開發一個Android應用程序,只想在手機設備中支持。 但是清單中的兼容屏幕僅支持最高xhdpi,然后將兼容的xxxhdpi放入android清單中。 有什么辦法做到的。
android:xlargeScreens
並不意味着它支持xhpdi
。 這意味着它根據API文檔支持extra large screen form-factors
:
指示應用程序是否支持超大屏幕尺寸。 xlarge屏幕的定義是比“大”屏幕(例如平板電腦(或更大的東西))大得多的屏幕,盡管它可能依賴於調整大小,但可能需要在應用程序方面特別注意才能充分利用它由系統填充屏幕
請參閱: http : //developer.android.com/guide/topics/manifest/supports-screens-element.html#xlarge
xxxhdpi
特定配置必須通過/res
子目錄進行,例如res/drawable-xxxhdpi/some_drawable.png
。 不通過Manifest
。
請參閱: http : //developer.android.com/guide/practices/screens_support.html
這是清單中所有新設備對我們有用的東西:
<compatible-screens>
<screen android:screenSize="small" android:screenDensity="ldpi" />
<screen android:screenSize="small" android:screenDensity="mdpi" />
<screen android:screenSize="small" android:screenDensity="hdpi" />
<screen android:screenSize="small" android:screenDensity="xhdpi" />
<screen android:screenSize="small" android:screenDensity="420" />
<screen android:screenSize="small" android:screenDensity="480" />
<screen android:screenSize="small" android:screenDensity="560" />
<screen android:screenSize="small" android:screenDensity="640" />
<screen android:screenSize="normal" android:screenDensity="ldpi" />
<screen android:screenSize="normal" android:screenDensity="mdpi" />
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />
<screen android:screenSize="normal" android:screenDensity="420" />
<screen android:screenSize="normal" android:screenDensity="480" />
<screen android:screenSize="normal" android:screenDensity="560" />
<screen android:screenSize="normal" android:screenDensity="640" />
<screen android:screenSize="large" android:screenDensity="ldpi" />
<screen android:screenSize="large" android:screenDensity="mdpi" />
<screen android:screenSize="large" android:screenDensity="hdpi" />
<screen android:screenSize="large" android:screenDensity="xhdpi" />
<screen android:screenSize="large" android:screenDensity="420" />
<screen android:screenSize="large" android:screenDensity="480" />
<screen android:screenSize="large" android:screenDensity="560" />
<screen android:screenSize="large" android:screenDensity="640" />
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.