我正在开发一个android应用程序,它只想在移动电话设备上支持。但是清单中的兼容屏幕只支持xhdpi,那么我如何将兼容的xxxhdpi放在android清单中。是一种可行的方法。
发布于 2015-09-27 16:05:38
android:xlargeScreens并不意味着它支持xhpdi。这意味着它支持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
发布于 2015-12-18 18:52:06
在所有新设备的清单中,这是对我们起作用的:
<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" />
https://stackoverflow.com/questions/32763394
复制相似问题