I developed a navigation drawer which has number of fragment,s and action bar. I want to know items on action bar change when i change the fragment .
As per the guide you can do that
First: Create a menu file for fragment
Second:
onCreate()
method of Fragment set setHasOptionsMenu(true);
Third:
Override onCreateOptionsMenu
, where you'll inflate the fragment's menu and attach it to your standard menu.
Fourth:
Override onOptionItemSelected
in your fragment for item handlers.