我希望我的应用程序适用于所有平板电脑,从 Samsung Galaxy TAb 7 英寸到任何其他平板电脑尺寸。
当我在 google play 中发布我的应用程序时,它出现在相同的手机上,例如 HTC Sensation XE 和三星 Galaxy S3!,这是我在 list 中的标签:
<supports-screens
android:largeScreens="true"
android:normalScreens="false"
android:requiresSmallestWidthDp="600"
android:smallScreens="false"
android:xlargeScreens="true" />
我想我不明白每个子标签究竟对应于哪些尺寸。谁能帮帮我?
最佳答案
如果您打算支持带有 Gingerbread 的原始版本 Galaxy Tab 7,我会说可能无法在 Gingerbread 下仅支持 Tablet。因为 Gingerbread 不区分平板电脑和手机。
只有在Honeycomb中,才能用最小的Width dp来区分宽度。
所以,我认为这个答案可能对您有所帮助:
Designing an android tablet-only app
基本上你需要添加 min SDK 标签来限制只有 Honeycomb(仅限平板电脑,没有使用 honeycomb 的手机)和 up 可以下载你的应用程序
关于java - android:<supports-screens> 标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13471047/