电话是从Android的游戏商店挑选平板电脑版本 [英] Phones are picking tablet build from Android play store

查看:101
本文介绍了电话是从Android的游戏商店挑选平板电脑版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用两个的apk文件,一个用于平板电脑和一个手机。我现在用的多APK从谷歌处理文档处理它们。

I am using two .apk files, one for tablets and one for phones. I am handling them using the Multiple APK Handling document from Google.

在我的电话清单:

  <supports-screens android:anyDensity="true"  />
<supports-screens android:largeScreens="false" />
<supports-screens android:xlargeScreens="false" />
<supports-screens android:smallScreens="true" />
<supports-screens android:normalScreens="true" />

在我的平板电脑清单:

And in my tablet manifest:

<supports-screens android:largeScreens="true" />
<supports-screens android:xlargeScreens="true" />
<supports-screens android:smallScreens="false" />
<supports-screens android:normalScreens="false" />

但现在手机一样注2,大,的Nexus-4拾取的平板电脑的版本。

But now phones like Note2, Grand, Nexus-4 are picking the tablet build.

请帮我以书面形式正确的过滤器,平板电脑和手机。

Please help me in writing the right filters for tablets and phones.

感谢。

推荐答案

在尝试此。请 阅读 它充分。

Before trying this. Please READ it fully.

请您的布局是这样的:

res/layout/main_activity.xml           # For handsets (smaller than 600dp available width)
res/layout-sw600dp/main_activity.xml   # For 7" tablets (600dp wide and bigger)
res/layout-sw720dp/main_activity.xml   # For 10" tablets (720dp wide and bigger)

有关标签

例如,如果您的应用程序仅适用于具有600dp最小可用宽度的平板式设备:

For example, if your application is only for tablet-style devices with a 600dp smallest available width:

<manifest ... >
<supports-screens android:requiresSmallestWidthDp="600" />
...
</manifest>

对于平板 。希望这会帮助你。

For Tablet . Hope this will help you.

这篇关于电话是从Android的游戏商店挑选平板电脑版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆