In your Activity_Main, or whatever is your main activity, you call:
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
inflater.inflate(R.menu.YOUR_MENU, menu);
super.onCreateOptionsMenu(menu,inflater);
}
YOUR_MENU is the options menu/actionbar you want.
If you want to add another button, or individualize the buttons according to the specific fragment inside the frame_layout/drawer layout, then in your fragment, put add this in the onCreateView:
setHasOptionsMenu(true);
This tells the activity that you are going to alter the options menu.
Then:
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
inflater.inflate(R.menu.YOUR_NEW_MENU, menu);
super.onCreateOptionsMenu(menu,inflater);
}
Whatever items YOUR_NEW_MENU has will be added to the optionsmenu/actionbar.