android - How to check if the back button of the ActionBarSherlock was clicked? -
i'm using library actionbarsherlock, , put item property android:showasaction="ifroom|collapseactionview"
. how check if button of actionbarsherlock clicked? thanks!
you have override
@override public boolean onoptionsitemselected(menuitem item) { switch (item.getitemid()) { case android.r.id.home: } return true; }
from doc:
his hook called whenever item in options menu selected. default implementation returns false have normal processing happen (calling item's runnable or sending message handler appropriate). can use method items processing without other facilities.
Comments
Post a Comment