Android's UP navigation -
after declaring parent activity in android's manifest, i've noticed navigation works automatically without these lines of code below
actionbar actionbar = this.getsupportactionbar(); if (actionbar != null) { actionbar.setdisplayhomeasupenabled(true); } @override public boolean onoptionsitemselected(menuitem item) { if (item.getitemid( == android.r.id.home) { navutils.navigateupfromsametask(this); } return super.onoptionsitemselected(item); }
i've tried launching app code , without haven't notice added functionality or changes in visual appearance. can enlighten me for?
Comments
Post a Comment