1

如何从 Android 设备中删除 ldpi 支持?我不想在 ldpi 支持的设备中显示任何内容。怎么做?

我更改了清单文件:
在清单中我做了以下更改:

Screen Support 
android:smallScreens="false";
4

2 回答 2

4

在 Android 开发者网站上找到的代码,这里

<compatible-screens>
    <!-- all small size screens - except 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 - except 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 - except 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 - except ldpi -->
    <screen android:screenSize="xlarge" android:screenDensity="mdpi" />
    <screen android:screenSize="xlarge" android:screenDensity="hdpi" />
    <screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
</compatible-screens>
于 2012-11-20T13:31:15.800 回答
2

在你的清单中,在使用权限后添加这个

<supports-screens android:smallScreens="false"/>

或检查这个

https://stackoverflow.com/a/9800554/1838457

于 2012-11-20T13:27:03.613 回答