0

我创建了一个 3 布局 HDPI、MDPI、IDPI。在系统 android 模拟器中,我创建了 3 个模拟器,但同时它使用了正确的模拟器,

我在画布高清手机中测试过,但是在手机中它只采用普通布局,为什么手机不采用HDPI布局?

在我的 Android 清单中

 <supports-screens
    android:anyDensity="true"
    android:smallScreens="true"
    android:largeScreens="true"
    android:normalScreens="true"
 />   
4

1 回答 1

3

Can you try putting this in your AndroidManifest.xml

    <compatible-screens>

    <!-- all small size screens -->
    <screen
        android:screenDensity="ldpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="mdpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="hdpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="small" />
    <!-- all normal size screens -->
    <screen
        android:screenDensity="ldpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="mdpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="hdpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="normal" />
</compatible-screens>

Support Screeens

    <supports-screens
    android:anyDensity="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:resizeable="true"
    android:smallScreens="true" >
</supports-screens>
于 2013-06-20T06:18:52.933 回答