Understanding why onCreateOptionsMenu is not displaying a menu

后端 未结 4 524
故里飘歌
故里飘歌 2021-01-21 12:11

I\'m reading through Android For Dummies. One example makes use of the onCreateOptionsMenu (I\'ve added a log message):

@Override
public boolean onCreateOptionsM         


        
4条回答
  •  独厮守ぢ
    2021-01-21 12:59

    I would remove the line super.onCreateOptionsMenu(menu); and try it again. This is also exemplified in Androids Inflating a Menu Resource section.

提交回复
热议问题