android - Actionbar home button click -


i have problem regarding actionbar home button.

when app starts, home button not clickable, , nothing. when move 1 level in app, set home clickable, , use button.

when go main menu, home button stuck forever clickable, altough nothing now(as should). still gets highlighted(it should not).

any ideas how make home button not clickable, after has been set clickable once?

i'm using actionbarsherlock , holo-everywhere if matters.

try this,

public boolean onoptionsitemselected(menuitem item) { super.onoptionsitemselected(item); switch(item.getitemid()) {  case android.r.id.home: preferenceactivity.this.onbackpressed(); //preferenceactivity activity name, can change break;   } return true;    } 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -