I would like the home item look like the back button in the ActionBar in Android 3.0 app. The look is similar to Market app (see the screenshot below marked in red):
I know there is a standard method to add an "up" affordance to the home button in action bar. But haven't seen a standard way to add a back arrow.
Is there a standard way to do it (maybe subclassing of ActionBar/Activity etc.)? If anyone has an example or has done something like this - it would be very nice if you could share it. Thank you.
UPD: if I use setDisplayHomeAsUpEnabled(true)
, it adds an up affordance as this - see a tiny up arrow on the left:
Maybe there is a way to style this "up" arrow to be a "back" arrow?
But haven't seen a standard way to add a back arrow.
That is the "up" affordance. Call setDisplayHomeAsUpEnabled(true)
on your ActionBar
to toggle it on.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With