【问题标题】:how to create a tablet-only project?如何创建仅限平板电脑的项目?
【发布时间】:2017-10-03 07:00:19
【问题描述】:

我正在 Android Studio 中创建一个应用。
在创建应用程序时,我在 Android Studio 中选择了手机和平板电脑选项。但我需要将项目设置为仅限平板电脑。
如何使其仅限平板电脑?

【问题讨论】:

标签: android


【解决方案1】:

请在您的 AndroidManifest.xml 文件中保留以下行以仅支持平板电脑。

<manifest ... >
<supports-screens android:smallScreens="false"
                  android:normalScreens="false"
                  android:largeScreens="true"
                  android:xlargeScreens="true"
                  android:requiresSmallestWidthDp="600" />
...
<application ... >
    ...
</application>

【讨论】:

    猜你喜欢
    • 2015-07-16
    • 2018-12-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多