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
Asked
Active
Viewed 807 times
1
-
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 Answers
2
try this code
ActionBar actionbar = getActionBar();
actionbar.setLogo(Drawable logo);

Vishwanath.M
- 6,235
- 11
- 42
- 56