Question Detail

How to change Back arrow color in android?

6 years ago Views 1387 Visit Post Reply

I have made white actionbar that way my back arrow not visible i have to try many things but nothing is work please help me how to change back arrow color in android?

Thread Reply

Hemant Sharma

- 6 years ago

try this code it is working for me.
it should work for you 

Drawable backArrow = getResources().getDrawable(R.drawable.ic_left_arrow);
backArrow.setColorFilter(getResources().getColor(R.color.dashcolor), PorterDuff.Mode.SRC_ATOP);