Fragment can has it’s own menu, the fragment menu items are also displayed in android application action bar. This article will show you how to add menu items in android fragment and how to use fragment menu items with activity menu items.
Although ActionBar provides users with a globally unified interface style and operation, it doesn’t mean that all applications’ ActionBars have to be exactly the same. If you need to modify the style of your Action Bar to better match your application, you can make it very simple by using Android styles and themes.
This example will show you how to use android ActionBar to implement Tab navigation. When you click one tab, it will show different content view.
This example will show you how to add a Spinner ( Drop Down ) menu list in android action bar.
This example will show you how to use android.support.v7.widget.SearchView class to add a search box and implement autocomplete function for the search box. It also demos how to use android.support.v7.widget.ShareActionProvider to open the share application list for your android application. You can see the example demo video at the end of this article.
This article will show you how to create and use action bar menus in android applications. There are two activities in this example, each has it’s own action bar. When you click one action bar menu, the other activity will be displayed.