Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Activity top-left corner back button

I've a simple question; I noticed that some activities have in their top-left corner a back button (for example in contacts details) Is it possible to display it in any kind on activities? If yes, How?

Thanks!

like image 887
Slv3r Avatar asked Jun 17 '13 18:06

Slv3r


1 Answers

That is referred to as "up" navigation (despite the fact that it points left...). You can enable it by calling setDisplayHomeAsUpEnabled(true) on the ActionBar.

like image 97
CommonsWare Avatar answered Oct 13 '22 22:10

CommonsWare