gpt4 book ai didi

android - 仅在 list 中为手机申报的正确方法

转载 作者:太空宇宙 更新时间:2023-11-03 10:38:26 24 4
gpt4 key购买 nike

在搜索关于这个主题的堆栈溢出的许多旧答案但没有找到明确的更新答案后,我仍然有点困惑!我的 minSdk 是 14,并且只想为手机制作我的应用程序,但是如果我这样做的话

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

像 galaxy s4 s5 s6 和 s6 edge 这样的手机怎么样!他们不属于大类吗?如果是这样,如何在不开放对平板电脑的支持的情况下宣布这一点?

最佳答案

试试这个

<compatible-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" />
<screen android:screenDensity="480" android:screenSize="small" />
<screen android:screenDensity="640" android:screenSize="small" />

<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" />
<screen android:screenDensity="480" android:screenSize="normal" />
<screen android:screenDensity="640" android:screenSize="normal" />
</compatible-screens>

我从 https://developer.android.com/guide/practices/screens_support.html 得到支持的安卓密度值(支持的屏幕范围)

但我不确定它是否适用于 Sony Xperia Z5 Premium,因为它的密度为 801dp ( http://dpi.lv/#3840 ×2160@5.5″)

关于android - 仅在 list 中为手机申报的正确方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38846130/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com