Skip to content Skip to sidebar Skip to footer

Menu Collapsing When Using ActionBar Tabs For Navigation

I have used ActionBar from the support library to build my application a tabbed navigation bar. I have two tabs in my application. Both of these Fragments have menus and they have

Solution 1:

As you're using the activities from the compatibility package, make sure that you use the proper namespaces when building the menu item(link). Here's a note from the guide to the menu item implementation:

Using XML attributes from the support library

Notice that the showAsAction attribute above uses a custom namespace defined in the tag. This is necessary when using any XML attributes defined by the support library, because these attributes do not exist in the Android framework on older devices. So you must use your own namespace as a prefix for all attributes defined by the support library.


Post a Comment for "Menu Collapsing When Using ActionBar Tabs For Navigation"