作为标题问题,我在过滤器设备Galaxy S8 / S8 +上有问题,将我的应用安装到支持正常和更高屏幕尺寸的Playstore中。我的过滤清单是:

<compatible-screens>
        <!-- all normal size screens -->
        <screen android:screenSize="normal" android:screenDensity="xhdpi" />
        <screen android:screenSize="normal" android:screenDensity="480" />
        <screen android:screenSize="normal" android:screenDensity="560" />
        <screen android:screenSize="normal" android:screenDensity="640" />

        <!-- all large size screens -->
        <screen android:screenSize="large" android:screenDensity="mdpi" />
        <screen android:screenSize="large" android:screenDensity="213" />
        <screen android:screenSize="large" android:screenDensity="hdpi" />
        <screen android:screenSize="large" android:screenDensity="xhdpi" />
        <screen android:screenSize="large" android:screenDensity="480" />
        <screen android:screenSize="large" android:screenDensity="560" />
        <screen android:screenSize="large" android:screenDensity="640" />

        <!-- all xlarge size screens -->
        <screen android:screenSize="xlarge" android:screenDensity="mdpi" />
        <screen android:screenSize="xlarge" android:screenDensity="213" />
        <screen android:screenSize="xlarge" android:screenDensity="hdpi" />
        <screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
        <screen android:screenSize="xlarge" android:screenDensity="420" /><!--nexus 5X, included 424 for z3 and 428 for z5-->
        <screen android:screenSize="xlarge" android:screenDensity="480" /><!-- xxhdpi -->
        <screen android:screenSize="xlarge" android:screenDensity="560" /><!-- xxxhdpi -->
        <screen android:screenSize="xlarge" android:screenDensity="640" /><!-- xxxhdpi -->

        <!--<screen android:screenSize="xlarge" android:screenDensity="567" />--><!--Samsung S8-->
        <!--<screen android:screenSize="xlarge" android:screenDensity="529" />--><!--Samsung S8+-->
    </compatible-screens>

我相信xlarge 480和560足以满足过滤器S8 / S8 +的要求,因为它们的密度分别为567和529,但是它不起作用。

有人知道这件事吗?

最佳答案

关于手册

https://developer.android.com/reference/android/util/DisplayMetrics.html#DENSITY_560
This is not a density that applications should target, instead relying on the system to scale their DENSITY_XXXHIGH assets for them.
xxxhdpi

10-08 17:51