android - Overflow icon is not coming the Actionbar of ActionBarSherlock -
i new android. trying use actionbarsherlock in application. tried following code in oncreateoptionsmenu :
menu.add("save").setshowasaction(menuitem.show_as_action_always); menu.add("edit").setshowasaction(menuitem.show_as_action_always); menu.add("clear").setshowasaction(menuitem.show_as_action_always); menu.add("refresh").setshowasaction(menuitem.show_as_action_always); menu.add("save all").setshowasaction(menuitem.show_as_action_always);
but not getting overflow icon in actionbar. understood silly mistake. couldn't find is. please me fix it!
since asking menuitem.show_as_action_always
think none of menu items go in overflow.
also, if device has hardware menu button, icons not go in overflow, instead can access them using menu button.
Comments
Post a Comment