I have been trying to add a back button to the action bar.
I want my view to look like this:
Add this line in onCreate() method
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
then Override this method
@Override public boolean onSupportNavigateUp(){ finish(); return true; }