Understanding why onCreateOptionsMenu is not displaying a menu

后端 未结 4 490
故里飘歌
故里飘歌 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:55

    This question is answered here:

    My menu in my activity is not appearing because my onCreateOptionsMenu is not getting called

    I had the same problem whilst studying this book. The code is right, but you have to press the menu button in order for it to appear. :)

提交回复
热议问题