(Deprecated) Fragment onOptionsItemSelected not being called

后端 未结 9 2143
孤城傲影
孤城傲影 2020-11-28 20:45

EDIT: This question was for the deprecated sherlock action bar. Android support library should be used instead now

I have added an action bar menu o

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 21:24

    Edit for actionbar sherlock use

    I had to use

    public boolean onMenuItemSelected(int featureId, MenuItem item) {
    

    in the main activity to capture the menu item

提交回复
热议问题