I want to make the back button in the action bar to look like this "<" and not arrow like "<-". Please let me know how to do it.
In you activity onCreate()
method do this:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
........
................
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setHomeAsUpIndicator(R.drawable.icon_arrow);
..........
...................
}
OUTPUT:
For Icon:
If you are using Android Studio
, then you can easily add icons.
Clip art
to choose your desired icon