Daniel
Daniel

Reputation: 1554

How can I create a menu at the bottom on in Android 4.0 upper

I wanted to create a menu at the bottom of my apps similar to this

enter image description here.

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

Answers (1)

CommonsWare
CommonsWare

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

Related Questions