android - Sherlock actionbar and 2.3 has unresponsive options menu -
i have application has options menu in fragments works in 4.0. when test in 2.3 weird issues. when click on option menu doesn't cause events trigger. if else after click back, click button, open activity. event supposed happen when click action button triggers.
i have sethasoptionsmenu(true); in fragments thing different maybe source of issue fragments inherit base fragment has logic action buttons.
---base class --- public void oncreateoptionsmenu(menu menu, menuinflater inflater) { if(menu != null)menu.clear(); inflater.inflate(r.menu.msg_menu, menu); } public boolean onoptionsitemselected(menuitem item) { switch (item.getitemid()) { //logic here } }
to make issue more strange button in actionbar behave can't figure out why.
edit: found if press menu button open , shut navigation drawer. button work correctly after still haven't found work around
Comments
Post a Comment