安卓市场筛选器;仅限制屏幕尺寸类型

3
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.helloworld"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-sdk android:minSdkVersion="4"/>
    <supports-screens android:smallScreens="true" android:normalScreens="false" android:largeScreens="false" android:xlargeScreens="false"/>
    <application android:label="@string/app_name" android:icon="@drawable/icon">
        <activity android:name="HelloWorld"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>

我在尝试使用AndroidManifest的市场过滤器设置时发现了一些奇怪的问题。
我上传了一个测试应用程序,将minSdkVersion设置为4,并且只将smallScreens设置为true,而其他所有大小都设置为false。我注意到门户网站读取的应用程序支持屏幕是small-xlarge,即使我明确声明了仅支持smallScreens。
在开发人员指南中,我没有看到任何关于无法将屏幕大小支持限制为仅一种类型的提及。我在清单文件中漏掉了什么吗?
1个回答

1

您只能限制小型设备无法使用该应用程序 - 所有其他屏幕尺寸都可以使用该应用程序,即使在清单中将其设置为 false。不同之处在于设备如何缩放您的应用程序,使用屏幕兼容性模式还是不使用。

请参见: 屏幕兼容性模式


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接