【问题标题】:Android support-screensAndroid 支持屏幕
【发布时间】:2013-07-04 07:43:22
【问题描述】:

如何从 Play 商店中排除以下“ldpi 正常”屏幕?

WQVGA400 (240x400) WQVGA432 (240x432)

我的应用要求最小宽度为 320。这在我的清单中:

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

对于 Android 3.2+ 有一个选项 android:requiresSmallestWidthDp,但我支持 2.1 以上,所以这不是一个选项。

我该怎么做?

谢谢, 安德烈

【问题讨论】:

标签: android manifest resolution screens


【解决方案1】:

我认为您提到的配置应该属于同一类别的小屏幕,因此拥有这些屏幕的人应该无法安装您的应用。

所以我认为你的清单没问题。

这里是小屏的描述(取自here):

android:smallScreens - 指示应用程序是否支持 更小的屏幕尺寸。小屏幕被定义为一个 比“普通”(传统 HVGA)屏幕更小的纵横比。一个 不支持小屏幕的应用程序将不可用 对于来自外部服务(例如 Google Play)的小屏幕设备, 因为平台几乎无法做出这样的 应用程序在较小的屏幕上工作。默认情况下为“true”。

【讨论】:

    【解决方案2】:

    还可以尝试在 xml 中添加 compatible-screen 标签。这是一个示例:

    <compatible-screens>
    
        <screen
            android:screenDensity="mdpi"
            android:screenSize="normal" />
        <screen
            android:screenDensity="hdpi"
            android:screenSize="normal" />
        <screen
            android:screenDensity="xhdpi"
            android:screenSize="normal" />
        <!-- large screens -->
        <screen
            android:screenDensity="hdpi"
            android:screenSize="large" />
        <screen
            android:screenDensity="xhdpi"
            android:screenSize="large" />
        <!-- xlarge screens -->
        <screen
            android:screenDensity="hdpi"
            android:screenSize="xlarge" />
        <screen
            android:screenDensity="xhdpi"
            android:screenSize="xlarge" />
    </compatible-screens>
    

    支持屏幕只看屏幕大小,但应用设计主要使用screen-density。根据您的要求调整这部分。

    如果您需要更多关于 compatible screen 的数据,请搜索开发者文档。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多