How to create a back element in an ActionBar?

I would like the home element to look like the back button in an ActionBar in an Android 3.0 app. The appearance is similar to the Market application (see screenshot below, marked in red):
enter image description here I know that there is a standard method to add "up" access to the home button in the action bar. But they did not see the standard way to add a back arrow. Is there a standard way to do this (maybe subclassing ActionBar / Activity, etc.)? If someone has an example or he has done something like this, it would be very nice if you could share it. Thanks.

UPD: if I use setDisplayHomeAsUpEnabled(true) , it adds accessibility like this - see the tiny arrow at the top left: enter image description here

Maybe there is a way to erase this up arrow as a back arrow?

+4
source share
1 answer

But I did not see the standard way to add a back arrow.

This is a "before" availability. Call setDisplayHomeAsUpEnabled(true) on the ActionBar to enable it.

+20
source

All Articles