如何从Android设备中删除ldpi支持?我不想在ldpi支持的设备中显示任何内容。怎么做?
我更改了清单文件:
在清单中,我做了以下更改:
Screen Support
android:smallScreens="false";
答案 0 :(得分:4)
在Android开发者网站here上找到的代码。
<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>
答案 1 :(得分:2)
在您的清单中,在使用权限
之后添加此内容<supports-screens android:smallScreens="false"/>
或查看此