我開發與11的minSdkVersion和17 我設計這個應用程式,多種屏幕尺寸targetSdkVersion一個Android應用程序。所以我把清單文件中的所有屏幕支持。我希望這個應用程序支持所有的密度。無效的屬性值語法:largescreens:=「真」
我的Manifest.xml代碼:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.sample"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="17" />
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens= "true"
android:xlargeScreens="true"
android:anyDensity="true"/>
<application
android:debuggable="true"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:name="CommApp" >
<activity
android:name="com.example.android.sample.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="HomePage"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
android:screenOrientation="portrait"></activity>
<activity android:name="Registering"
android:screenOrientation="portrait"
></activity>
<activity android:name="ListviewActivity"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
android:screenOrientation="portrait"></activity>
</application>
</manifest>
我已經創建的佈局文件夾中所有的屏幕尺寸爲RES /佈局小,RES /佈局正常,RES /佈局大,RES /佈局XLARGE 。 我想運行在屏幕尺寸720x1280的模擬器這個應用程序,此設備我創建在res /佈局XLARGE夾中的所有佈局文件。 但在運行它顯示了以下錯誤:
Invalid attribute value syntax for android:largescreens: = "true"
android:xlargeScreens="true"
android:anyDensity="true"/
我不知道什麼是錯了嗎?任何人都可以告訴我解決方案。 在此先感謝。
有後'='無的空間效果。它不會給錯誤,即使你有空間(S) – Jaguar 2013-04-25 07:25:20
我想這也是,但它不工作 – PM16 2013-04-25 08:28:21
如果我在設備上運行此與配置文件「佈局正常」纔剛剛加載的720x1280屏幕尺寸,但我這個屏幕尺寸有一個單獨的文件夾「layout-xlarge」。 – PM16 2013-04-25 08:31:09