lunes, 23 de septiembre de 2013

Show ActionBar items within fragments

To enable OnCreateOptionsMenu, onPrepareOptionsMenu, onOptionsItemSelected, in fragment, you have to call setHasOptionsMenu within the fragment’s onCreate() method:
setHasOptionsMenu(true);

No hay comentarios:

Publicar un comentario