I want to set an icon at the the end of my Toolbar,which start another activity. My Toolbar portion
Toolbar
Then in OnCreateView: setHasOptionsMenu(true); Closing the OncreateView below write this: @Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.pdf, menu); ... }