Search code examples
androidandroid-activity

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!


Solution

  • 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.