我有一个包含 Activity 的 TabActivity。When the tab for the activity is selected, if I press the Menu button, onPrepareOptionsMenu is called in the parent TabActivity, but not on the activity for the tab which was selected.
除非我在选项卡内部单击,否则不会显示选项卡中活动的选项菜单,然后我会调用两者(这是我想要的)。选择选项卡时,有什么方法可以“聚焦”选项卡中的活动?