I'm trying to do some things on the ActionBar in Android.
I've already added new items in the right side of the action bar.
How can I change the left side of the action bar? I want to change the icon and the text, and I want to add a "Back Button" in the action bar for the other screens
Best Answer
This is very simple to accomplish
If you want to change it in code, call:
And set the values to whatever you please.
Or, in the Android manifest XML file:
To enable the back button in your app use:
The code should all be placed in your
onCreate
so that the label/icon changing is transparent to the user, but in reality it can be called anywhere during the activity's lifecycle.