Home Tutorials Hints & Tips

Android Action Bar Menu

Part 2 - Testing

Preceding tutorials in this series:

Tutorials in that series that follow:

The screen shot below shows the action bar menu with a portrait screen orientation. Here the showAsAction attribute is set to ifRoom|withText.

Android Action Bar Menu show ifroom withtext

There is just enough room to show the + menu icon that represents a new item or file. There is no room for text. The remaining menu items are collapsed to the menu indicator represented by three vertical dots. The following screen shot shows the expanded menu.

Android Action Bar Menu show ifroom withtext

With a screen orientation of landscape, you can see all the menu items with text.

Android Action Bar Menu show ifroom withtext landscape

Finally, if we change the showAsAction attribute to “never”, then all menu items are collapsed to the menu indicator.

Android Action Bar Menu show never


Download Download the Project files


Privacy and Cookies Disclaimer Copyright
© 2015 - 2018 North Border Tech Training All rights reserved