【发布时间】:2013-12-18 17:17:21
【问题描述】:
一个只支持7寸、10寸平板的Android应用的manifest entry应该是什么? 它与以下问题相反 Manifest screen support Entry for Device only and Tablet Only
【问题讨论】:
标签: android
一个只支持7寸、10寸平板的Android应用的manifest entry应该是什么? 它与以下问题相反 Manifest screen support Entry for Device only and Tablet Only
【问题讨论】:
标签: android
您需要添加如下内容。请阅读 Google 指南以了解选项及其后果:http://developer.android.com/guide/practices/screens-distribution.html
<manifest ... >
<supports-screens android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="true"
android:xlargeScreens="true"
android:requiresSmallestWidthDp="600" />
...
<application ... >
...
</application>
</manifest>
【讨论】:
“根据android开发者网站的详细信息,Android将实际设备尺寸分为小、普通、大和特大四个广义组。设备的密度也决定了android设备的分类。
在设置标签“supports-screens”的值时,你可以处理这个
试试这个
<manifest ... >
<supports-screens android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="true"
android:xlargeScreens="true"
android:requiresSmallestWidthDp="600" />
...
<application ... >
...
</application>
【讨论】:
你也可以试试这个
<manifest ... >
<compatible-screens>
<screen android:screenSize=“large” android:screenDensity="hdpi" />
<screen android:screenSize=“large android:screenDensity="xhdpi" />
<screen android:screenSize=“xlarge” android:screenDensity="hdpi" />
<screen android:screenSize=“xlarge android:screenDensity="xhdpi" />
</compatible-screens>
...
<application ... >
...
<application>
</manifest>
【讨论】: