i trying make changes action bar when click on actionbar icon, brought home screen. tried approach:
actionbar.sethomebuttonenabled(true); public override bool onoptionsitemselected(imenuitem item) { if (item.itemid == android.resource.id.home) { intent home = new intent(this, typeof(welcomescreen)); home.setflags(activityflags.newtask | activityflags.cleartask); startactivity(home); }
but surprise icon not clickable. have tried using
actionbar.setdisplayhomeasupenabled(true);
and works, not want <-
associated method.
i have taken on project else , have set action bar part of theme. unsure how can interact action bar on individual screens...
( want add implementation (back home screen on icon press) on screens if that's possibility great)
Comments
Post a Comment