许多平板电脑(如Galaxy Tab)报告为large
屏幕,而不是xlarge
。因此,如果我通过
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="false"
/>
这是否意味着平板电脑无法在Play商店中看到我的应用?甚至不是Galaxy Tab和类似设备(被识别为large-hdpi
?
同样的事情。如果我制作了一款平板电脑应用并希望它只能通过平板电脑使用并通过
进行设置<supports-screens
android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="false"
android:xlargeScreens="true"
/>
任何Galaxy Tab或类似设备都能看到这个应用程序吗?
答案 0 :(得分:1)
您无法完全过滤掉平板电脑。 Android生态系统不区分平板电脑和手机。您应该专注于使您的应用在各种屏幕尺寸上看起来不错,如果您不想支持xlarge屏幕尺寸那么就这样吧。但是用户仍然可以在平板电脑上以支持模式查看它(有关详情,请参阅here)。
这里有一篇类似的帖子。基本上你可以稍微更改清单,但最终会过滤掉一些平板电脑设备,带有大显示屏的手机可能仍然可以下载:Designing an android tablet-only app。
答案 1 :(得分:0)
您可以通过不支持小屏幕尺寸来阻止智能手机使用平板电脑应用 但是当你在平板电脑上使用智能手机应用程序时,它只会拉伸