Android actionbar not visible

后端 未结 17 2293
萌比男神i
萌比男神i 2020-12-18 18:23

I am trying to add an option menu in actionbar to my existing app but it is not working. If I create a new project with \"hello world\" default app I can see the button in a

17条回答
  •  被撕碎了的回忆
    2020-12-18 18:44

    Have you tried to set the app theme to a theme that supports the ActionBar, like Theme.Holo.Light?

    Also, in your Activity you can try getActionBar().show();.

提交回复
热议问题