作为标题问题,我在过滤设备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,但它不起作用。
有人知道这个吗?
答案 0 :(得分:0)
关于手册
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
。