4

My application runs on Gingerbread. It can properly show action-bar menu-item in normal SherlockFragmentActivity but when I add a menu item in an Activity with tabs the item is not shown. I was expecting to see the item above the tabs on the right of the name.

Is that normal or I'm doing something wrong?

I can add normal options-menu item that are properly show in the menu.

So the main question is: did someone manage to show both the tabs and the action-bar?

4

2 回答 2

0

你做错了什么。包括其他菜单选项没有任何问题。如果您使用的是操作栏微调器,则情况不同,因为它不适用于选项卡。

于 2012-12-12T08:29:40.627 回答
0

尝试在 PrepareOptionsMenu 中添加项目来代替 CreateOptionsMenu 我希望这会起作用

于 2014-01-17T05:16:10.147 回答