well this is simple one to show back button
actionBar.setDisplayHomeAsUpEnabled(true);
and then you can custom the back event at onOptionsItemSelected
case android.R.id.home:
this.finish();
return true;
More Related Contents:
- Detect home button press in android
- getActionBar() returns null
- How to force use of overflow menu on devices with menu button
- How to get the ActionBar height?
- How to disable the home key
- ActionBarCompat: java.lang.IllegalStateException: You need to use a Theme.AppCompat
- How to hide action bar before activity is created, and then show it again?
- Switching between Android Navigation Drawer image and Up caret when using fragments
- What is the size of ActionBar in pixels?
- Remove icon/logo from action bar on android
- Android – NullPointerException on SearchView in Action Bar
- getActionBar returns null
- How to get text on an ActionBar Icon?
- How to set custom ActionBar color / style?
- How to change action bar title color in code
- ActionBarSherlock – How to set the padding of each actionbar’s icon?
- How to get ActionBar view?
- How to display both icon and title of action inside ActionBar?
- How to change ActionMode background color in Android
- how to add padding between menu items in android? [duplicate]
- Android action bar not showing overflow
- ActionBar MenuItem Divider
- Center Align title in action bar using styles in android.
- How do I declare an extended height Toolbar/Action Bar on Android Lollipop?
- Change Android 5.0 Actionbar color
- Displaying icon for menu items of Action Bar in Honeycomb Android 3.0
- How to fix getActionBar method may produce java.lang.NullPointerException
- How do I show Overflow Menu Items to Action Bar in Android
- Custom view for Menu Item
- How do I get a copy of the Android overflow menu icon? [closed]