它没有在Android手机上的Play商店App上展示,但是这将适用于所有低于软糖的较低版本 这是我的应用链接。 https://play.google.com/store/apps/details?id=com.moblications.teamandy.wallframes 这是我的清单文件:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.moblications.teamandy.wallframes"
android:versionCode="4"
android:versionName="4.0" >
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:resizeable="true"
android:anyDensity="true"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-feature android:name="android.hardware.telephony"
android:required="false"/>
<uses-feature android:name="android.hardware.camera" android:required="false" />
<compatible-screens>
<screen android:screenSize="large" android:screenDensity="480" />
<screen android:screenSize="xlarge" android:screenDensity="480" />
<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"/>
<!--all normal size screens -->
<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" />
<!-- all large size screens -->
<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" />
<!-- all xlarge size screens -->
<screen android:screenSize="xlarge" android:screenDensity="ldpi" />
<screen android:screenSize="xlarge" android:screenDensity="mdpi" />
<screen android:screenSize="xlarge" android:screenDensity="hdpi" />
<screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
<!-- Special case for Nexus 7 -->
<screen android:screenSize="large" android:screenDensity="213" />
</compatible-screens>
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="16" />
</manifest>
答案 0 :(得分:3)
修改强>
刚刚发现android插件还不知道xxhdpi
和xxxhdpi
,但我找到了ppl使用的解决方法:https://code.google.com/p/android/issues/detail?id=39622
只需添加:
<screen android:screenSize="..." android:screenDensity="480"/> <!-- xxhdpi -->
<screen android:screenSize="..." android:screenDensity="640"/> <!-- xxxhdpi -->
原始回答:
我刚刚测试过我的Nexus 7(2012)它的工作原理和我的nexus 5(2013)没有。
这指出了一个逻辑问题,没有android:screenDensity="xxhdpi"
,因此您可以从您的应用中过滤掉任何xxhdpi
。
但是说,我同意和+1 @ianhanniballake评论。为什么要烦扰所有compatible-screens
和supports-screens
。如果你的应用适合所有,请删除它们。完全删除所有这些都将是好的。像这样:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.moblications.teamandy.wallframes"
android:versionCode="4"
android:versionName="4.0" >
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-feature android:name="android.hardware.telephony"
android:required="false"/>
<uses-feature android:name="android.hardware.camera"
android:required="false" />
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="16" />
</manifest>