我在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>
什么我需要做的,使可用于平板电脑的应用程序?
相关/可能dupe:http://stackoverflow.com/questions/17938163/designing-android-apps-for-tablets – hichris123 2014-12-07 21:03:10
@ hichris123:这是相关的,但没有什么帮助我。仍在寻找一个基于代码的答案。 – frenchie 2014-12-07 22:34:16
我很肯定你只需要为大屏幕添加一些资源,比如layout-large/home.xml来显示你实际上为平板电脑做了些什么,在清单中你只是说你可以在平板电脑上运行你的应用程序。 – Ayoub 2014-12-10 11:22:56