Change color of the actionbar's arrow dynamically

322 Views Asked by At

How do I change the color of the arrow of the actionbar dynamically? I don't want to use a theme like it was done here, because the color of my actionbar changes dynamically, too.

Is it possible?

1

There are 1 best solutions below

3
On BEST ANSWER

You can change it programmatically easily by using homeAsUpIndicator() function that added in android API level 18 and upper.

ActionBar().setHomeAsUpIndicator(R.drawable.ic_yourindicator);