North Border Software




Home Tutorials Hints & Tips About
Share on Facebook Share on Twitter

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


© 2015 North Border Software All rights reserved
Privacy and Cookies Terms of Use Disclaimer Copyright
North Border Software Logo

Android Apps and Training