2014-12-07 52 views
10

我在PlayStore上有一个cordova应用程序,但在优化提示中显示该应用程序不适用于平板电脑。我环顾四周,改变了<supports-screens>标签,但它仍然无法正常工作,我仍然得到了优化提示。让Android应用程序按照平板电脑的设计显示

这里的清单文件:

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

相关/可能dupe:http://stackoverflow.com/questions/17938163/designing-android-apps-for-tablets – hichris123 2014-12-07 21:03:10

+0

@ hichris123:这是相关的,但没有什么帮助我。仍在寻找一个基于代码的答案。 – frenchie 2014-12-07 22:34:16

+0

我很肯定你只需要为大屏幕添加一些资源,比如layout-large/home.xml来显示你实际上为平板电脑做了些什么,在清单中你只是说你可以在平板电脑上运行你的应用程序。 – Ayoub 2014-12-10 11:22:56

回答

3

你需要的不是'基于代码的答案'。

Google Play会检查您上传的信息以判断应用是否也适用于平板电脑。

这应该包括以下内容。

(1)应用程序与片剂闪屏

(2)应用程序与片剂图标

(3)配置为片剂屏幕。 (您已根据您的问题设置)

(4)平板电脑信息。 (截图,宣传图片等)

+0

1)我的应用程序工作在phonegap;没有splashscreen,2)我已经加载了所有的图标大小,3)我认为我很好(见问题代码),4)我已经获得了所有的信息上传。 – frenchie 2014-12-14 06:18:15

+0

您对平板电脑有不同的布局吗?你不能只是说,'是的,这是为了平板电脑',没有做任何事情来利用更大的屏幕。 – Lukos 2014-12-16 16:45:52

+0

@Lukos是的,平板电脑的响应式设计也是必要的。 – 2014-12-20 07:27:01