我在谷歌播放中发布了一个应用程序,但我无法使其与平板电脑兼容。我该如何解决这个问题
这是我的清单文件
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="packageName"
android:installLocation="auto"
android:versionCode="3"
android:versionName="0.1.3" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="17" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<compatible-screens>
<screen android:screenSize="large" android:screenDensity="480" />
<screen android:screenSize="xlarge" android:screenDensity="480" />
<!--all small size screens -->
<screen android:screenSize="small" android:screenDensity="ldpi"/>
<screen android:screenSize="small" android:screenDensity="mdpi"/>
<screen android:screenSize="small" android:screenDensity="hdpi"/>
<screen android:screenSize="small" android:screenDensity="xhdpi"/>
<!--all normal size screens -->
<screen android:screenSize="normal" android:screenDensity="ldpi"/>
<screen android:screenSize="normal" android:screenDensity="mdpi"/>
<screen android:screenSize="normal" android:screenDensity="hdpi"/>
<screen android:screenSize="normal" android:screenDensity="xhdpi"/>
<!-- all large size screens -->
<screen android:screenSize="large" android:screenDensity="ldpi"/>
<screen android:screenSize="large" android:screenDensity="mdpi"/>
<screen android:screenSize="large" android:screenDensity="hdpi"/>
<screen android:screenSize="large" android:screenDensity="xhdpi"/>
<!-- all xlarge size screens -->
<screen android:screenSize="xlarge" android:screenDensity="ldpi"/>
<screen android:screenSize="xlarge" android:screenDensity="mdpi"/>
<screen android:screenSize="xlarge" android:screenDensity="hdpi"/>
<screen android:screenSize="xlarge" android:screenDensity="xhdpi"/>
<!-- Special case for Nexus 7 -->
<screen android:screenSize="large" android:screenDensity="213" />
</compatible-screens>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="CompanyActivity"
android:configChanges="orientation"
android:label="@string/app_name"
android:screenOrientation="sensorPortait"
android:windowSoftInputMode="adjustPan" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="LoginActivity"
android:configChanges="orientation"
android:screenOrientation="sensorPortait"
android:windowSoftInputMode="adjustPan" >
</activity>
</application>
答案 0 :(得分:1)
布局sw600dp
布局sw600dp陆
布局sw720dp
布局sw720dp陆
创建这些文件夹并粘贴布局文件以检查问题
编辑: 现在手机的布局不同于小型的大型xlarge xxlarge。所以创建新文件夹作为我的答案 这些文件夹适用于最小宽度为600和720的设备,这是典型的平板电脑尺寸