How do I change the android actionbar title and icon

person shubham sharmafolder_openAndroid, issueslocal_offer, , , access_time October 15, 2016

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.

warningComments are closed.