Reputation: 1554
I wanted to create a menu at the bottom of my apps similar to this
.
But I looked up Android's developer guide and found ActionBar in Google typically resides at the top of the view. So How can I customize it to my purpose, and come up with an XML layout with menu at the bottom. A sketch of xml would be greatly appreciated 'cause I am really at loss.
Thanks
Upvotes: 1
Views: 158
Reputation: 1006564
This is a split action bar.
For the native API Level 11 action bar, and for ActionBarSherlock, use android:uiOptions="splitActionBarWhenNarrow"
in your manifest for the <activity>
or <application>
that you want to have use the split action bar. For the AppCompat action bar, add <meta-data android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
to the <activity>
.
Upvotes: 1