Reputation: 127
I have set image in Actionbar using
ActionBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.header));
and also removed "android:icon="@drawable/header"
from manifest.xml
but I am getting one image overlapped over other. I am attaching snapshot.
I want to display only my image.
Upvotes: 1
Views: 3099
Reputation: 191
getActionBar().setDisplayShowHomeEnabled(false);
add this in your code you will get the desired output!!!
Upvotes: 1
Reputation: 3993
Use this code:
getActionBar().setIcon(android.R.color.transparent);
Upvotes: 1