Valeu, o pior é que eu tinha lido. Devo ter passado despercebido por isso.
Mas obrigado!
--
Atenciosamente,
André Luiz R. Silva
(11) 6639-6985
@andreronsilva
On Mon, Oct 24, 2011 at 2:00 PM, luciofm <luciofm@gmail.com> wrote:
Your fragments can contribute menu items to the activity's Options Menu (and, consequently, the Action Bar) by implementingonCreateOptionsMenu(). In order for this method to receive calls, however, you must callsetHasOptionsMenu()duringonCreate(), to indicate that the fragment would like to add items to the Options Menu (otherwise, the fragment will not receive a call toonCreateOptionsMenu()).Ta tudo la na documentação do Android.
Lúcio Maciel
luciofm@gmail.com
2011/10/24 André Luiz R. Silva <macolinkalkin@gmail.com>Tenho que alterar o menu dentro de um fragment.Tentei usar onCreateOptionsMenu e onCreateContextMenu só que nenhum dos dois funcionou. A aplicação nem chama eles.Alguém já conseguiu alterar o menu no fragment?
Atenciosamente,
André Luiz R. Silva
(11) 6639-6985
@andreronsilva






0 comentários:
Postar um comentário