使Android应用程序在平板电脑上显示设计效果

10

我在PlayStore上有一个Cordova应用程序,但优化提示显示该应用程序不适用于平板电脑。我查看了一些资料并更改了<supports-screens>标签,但仍然无效,我仍然收到优化提示。

这是清单文件:

<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="11"    
                    android:versionName="$BundleVersion$" 
                    package="$AppIdentifier$" 
                    android:windowSoftInputMode="adjustPan"
                    android:hardwareAccelerated="$AndroidHardwareAcceleration$"
                    xmlns:android="http://schemas.android.com/apk/res/android" >
        <supports-screens
                android:largeScreens="true"
                android:normalScreens="true"
                android:smallScreens="true"
                android:xlargeScreens="true"
                android:resizeable="true"
                android:anyDensity="true"
                />

        <application android:label="@string/app_name" 
                                 android:icon="@drawable/icon" 
                                 android:hardwareAccelerated="$AndroidHardwareAcceleration$">
                <activity android:label="@string/app_name" 
                    android:name=".TelerikCallbackActivity"
                    android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
                    android:launchMode="standard"
                                    android:theme="@android:style/Theme.Black.NoTitleBar" >
                        <intent-filter>
                                <action android:name="android.intent.action.MAIN" />
                                <category android:name="android.intent.category.LAUNCHER" />
                        </intent-filter>
                </activity>
        </application>
        <uses-sdk android:targetSdkVersion="14" />
</manifest>

这是配置文件:

<cordova>

    <content src="index.html" />

    <preference name="useBrowserHistory" value="true" />
    <preference name="exit-on-suspend" value="false" />
    <preference name="fullscreen" value="true" />
    <preference name="permissions" value="none"/>

    <plugins>
        <plugin name="App" value="org.apache.cordova.App"/>
        <plugin name="Device" value="org.apache.cordova.Device"/>
    </plugins>
</cordova>

我需要做什么才能让应用程序适用于平板电脑?


1
相关/可能重复:https://dev59.com/3GMm5IYBdhLWcg3wBrXD - hichris123
@hichris123:这个问题相关,但是那里的内容都没有帮到我。我还在寻找基于代码的答案。 - frenchie
我相当确定你只需要为大屏幕添加一些资源,比如layout-large/home.xml,来展示你实际上为平板做了一些工作,在清单文件中你只需说明你的应用程序可在平板电脑上运行即可。 - Ayoub
1个回答

3
您需要的不是“基于代码的答案”。
Google Play将审核您上传的信息,以判断应用程序是否也适用于平板电脑。
这应该包括以下内容。
(1)有平板电脑启动画面的应用程序
(2)有平板电脑图标的应用程序
(3)针对平板电脑屏幕的配置。(您已根据您的问题进行了设置)
(4)针对平板电脑的信息。(截图,宣传图片等)

  1. 我的应用程序在PhoneGap中运行,没有启动画面;
  2. 我已经加载了所有图标尺寸;
  3. 我认为我已经解决了这个问题(请参见问题代码);
  4. 我已经上传了所有信息。
- frenchie
你们有针对平板电脑的不同布局吗?仅仅说“是的,这是为平板电脑设计的”而没有做任何利用更大屏幕的事情是不够的。 - Lukos
@Lukos 是的,平板电脑的响应式设计也是必要的。 - Jack He

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