【问题标题】:What is the manifest file entry什么是清单文件条目
【发布时间】:2013-12-18 17:17:21
【问题描述】:

一个只支持7寸、10寸平板的Android应用的manifest entry应该是什么? 它与以下问题相反 Manifest screen support Entry for Device only and Tablet Only

【问题讨论】:

    标签: android


    【解决方案1】:

    您需要添加如下内容。请阅读 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>
    

    【讨论】:

      【解决方案2】:

      “根据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>
      

      【讨论】:

        【解决方案3】:

        你也可以试试这个

        <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>
        

        Refer this android doc

        【讨论】:

          猜你喜欢
          • 2021-10-06
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2017-11-26
          • 1970-01-01
          • 1970-01-01
          • 2020-01-15
          • 2018-04-10
          相关资源
          最近更新 更多