my minSdkVersion is 8 and targetSdkVersion is 21
the manifest `
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:uiOptions="splitActionBarWhenNarrow"
android:name="com.example.coco.myapplication.MainActivity"
android:label="@string/app_name" >
<meta-data android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
`
the menu
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity">
<item android:id="@+id/action_settings" android:title="@string/action_settings"
android:orderInCategory="100" app:showAsAction="never" />
<item
android:id="@+id/test1"
android:title="test1"
android:icon="@drawable/ic_launcher"
app:showAsAction="ifRoom|withText" />
in the preview of android studio i could see the item is on the bottom, but when i run it on either emulator or device they are on the top,I have create a new project to test but it also doesn't work, how to solve it?thanks
plus: i don't know the attribute "whennarrow" mean ,is that mean the device size is narrow or the space for action buttons is narrow?if it is the first,how should i judge whether the device is narrow or wide,if it is the second,how many items will lead to the action bar to split?