0
<?xml version="1.0" ?>
<manifest android:screenOrientation="landscape" android:versionCode="3"
android:versionName="3" package="com.tablet3" xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="11" />
    <!-- TI_MANIFEST -->
    <application android:debuggable="false" android:icon="@drawable/appicon"
    android:label="actiobar" android:name="actiobarApplication">
        <!-- TI_APPLICATION -->a
        <activity android:configChanges="keyboardHidden" android:screenOrientation="landscape"
        android:label="mob" android:name=".actiobarActivity" android:theme="@style/Theme.Titanium">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:configChanges="keyboardHidden" android:name="org.appcelerator.titanium.TiActivity"
        android:screenOrientation="landscape" />
        <activity android:configChanges="keyboardHidden" android:name="org.appcelerator.titanium.TiTranslucentActivity"
        android:screenOrientation="landscape" />
        <activity android:configChanges="keyboardHidden" android:name="org.appcelerator.titanium.TiModalActivity"
        android:screenOrientation="landscape" />
        <activity android:configChanges="keyboardHidden" android:name="ti.modules.titanium.ui.TiTabActivity"
        android:uiOptions="splitActionBarWhenNarrow" android:screenOrientation="landscape"
        />
        <activity android:name="ti.modules.titanium.ui.android.TiPreferencesActivity"
        android:screenOrientation="landscape" />
        <service android:exported="false" android:name="org.appcelerator.titanium.analytics.TiAnalyticsService"
        />
    </application>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"
    />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
    />
    <uses-permission android:name="android.permission.INTERNET" />
</manifest>

当我将 uiOptions 添加到我的活动时,我收到此错误。

AndroidManifest.xml:22: error: No resource identifier found for attribute 'uiOptions' in package 'android'

我希望 ActionBar 降下来,所以我实际上正在尝试在我的 Activity 中使用 uiOptions。

4

1 回答 1

0

此属性是在 API 14 中添加的,但您已指定 targetSdkVersion 11

于 2013-01-05T10:18:14.777 回答