Add image to the left side of the action bar?

I need to add an image between the navigation button and the drop down menu in action. How can i do this?

enter image description here

+4
source share
1 answer

you need to call setIcon(), it will change the icon

getActionBar();
ActionBar actionBar = getActionBar();
actionBar.setIcon(R.drawable.my_icon);

see this for more details

+2
source

All Articles