1

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

vinay kumar
  • 1,451
  • 13
  • 33
user1302569
  • 7,131
  • 13
  • 46
  • 66
  • check this below link, its suits for your question http://stackoverflow.com/questions/6351479/android-how-to-change-the-actionbar-home-icon-to-be-something-other-than-the – Vishwanath.M Aug 02 '12 at 10:31
  • ok, but how I can change icon from code in activity? This is possible? – user1302569 Aug 02 '12 at 10:37

1 Answers1

2

try this code

    ActionBar actionbar = getActionBar();
    actionbar.setLogo(Drawable logo);
Vishwanath.M
  • 6,235
  • 11
  • 42
  • 56