I'm making a 4.0+ app, using the native actionbar.
How can I change the icon used for the up button (the arrow icon)? Ideally I could do this programatically.
Thanks
I'm making a 4.0+ app, using the native actionbar.
How can I change the icon used for the up button (the arrow icon)? Ideally I could do this programatically.
Thanks
for example:
Button btn = new Button(this);
btn.setText("New Todo");
btn.setBackgroundResource(R.drawable.new_todo_image);
or an existing object
btn = (Button) findViewById(R.id.image);
btn.setBackgroundResource(R.drawable.new_todo_image);
The Actionbar logo
final android.app.ActionBar bar = getActionBar();
bar.setIcon(R.drawable.icon);