我正在开发一款Android应用,它只想支持手机设备。但是清单中的兼容屏幕只支持xhdpi然后如何在android清单中放置兼容的xxxhdpi。 有没有办法做到这一点。
答案 0 :(得分:0)
android:xlargeScreens
并不意味着它支持xhpdi
。这意味着它支持extra large screen form-factors
,根据API文档:
指示应用程序是否支持超大屏幕外形。 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
答案 1 :(得分:0)
这对我们所有新设备的清单都有用:
<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" />