Skip to content Skip to sidebar Skip to footer

Set Image In Action Bar

I have set image in Actionbar using ActionBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.header)); and also removed 'android:icon='@drawable/header' from manifes

Solution 1:

getActionBar().setDisplayShowHomeEnabled(false);

add this in your code you will get the desired output!!!

Solution 2:

Use this code:

getActionBar().setIcon(android.R.color.transparent);

Post a Comment for "Set Image In Action Bar"