user1302569
user1302569

Reputation: 7191

Action bar and changing icon

I am using action bar in my app with sdk target 3.0. Is this possible to change icon from left side? This is default icon. I want to change this icon in every activity in code. In android 4.0 we have getActionBar().setIcon. But how I can do that in 3.0

Upvotes: 1

Views: 810

Answers (1)

Vishwanath.M
Vishwanath.M

Reputation: 6317

try this code

    ActionBar actionbar = getActionBar();
    actionbar.setLogo(Drawable logo);

Upvotes: 2

Related Questions