android-Google Play中的手机和平板电脑过滤器
作者:互联网
我想为我的Google Play应用程序添加过滤器.
我只想将我的应用程序仅显示在电话设备上,而不显示给平板电脑用户.
因此,除了< screen-supports>之外,我可以放置哪种过滤器? ?
手机,平板电脑或平板电脑是否有特定的过滤器?
解决方法:
声明一个应用程序仅适用于平板电脑;
<supports-screens android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="true"
android:xlargeScreens="true"
android:requiresSmallestWidthDp="600" />
声明一个应用程序仅适用于手机
<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>
详细信息:http://developer.android.com/guide/practices/screens-distribution.html#FilteringHandsetApps
编辑:
兼容屏幕中没有xxhdpi选择器,因此您可以使用;
片剂:
<supports-screens android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="true"
android:xlargeScreens="true" />
电话 :
<supports-screens android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="false"
android:xlargeScreens="false" />
标签:google-play,filter,android-manifest,tablet,android 来源: https://codeday.me/bug/20191202/2086864.html