0

How to get back button if I'm using getSupportActionBar(). hide() ;

I do not want to show action on it. It looks not appealing. https://code.sololearn.com/c721Y9Ip75IQ/?ref=app

17th Dec 2017, 12:37 AM
HighFlyer
HighFlyer - avatar
1 Réponse
+ 4
Create your own back button (if there isn't a physical button, you'll have to check in your code) and then link it to an overridden onBackPressed() method or have the method the button is linked to call it. This is a generalization and depends on how you're planning your user interface for your app etc, but should help to point you in the right direction. https://developer.android.com/training/implementing-navigation/temporal.html
17th Dec 2017, 1:09 AM
ChaoticDawg
ChaoticDawg - avatar