Reputation:
The action bar works, but I don't know why i can't split it in my app.. There's two activities, the splash screen comes first..,I don't know what's missing.. here's my manifest code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="example.paint"
android:versionCode="1"
android:versionName="1.0" >
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true" />
<uses-sdk android:minSdkVersion="14" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name">
<activity
android:name=".Splash"
android:label="@string/app_name"
android:exported="true"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Paint"
android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
android:uiOptions="splitActionBarWhenNarrow">
<intent-filter>
</intent-filter>
<meta-data android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
</application>
</manifest>
Any help would be much appreciated!
Thank you very much!
Upvotes: 0
Views: 227
Reputation: 199805
As the ui option name (splitActionBarWhenNarrow
), the split action bar only is used on narrow screens, such as phones in portrait mode as explained in the guide for supporting both tablets and phones. For tablets (and even phones in landscape), the split action bar is not used as there is enough room in the action bar for the icons.
Upvotes: 0