Is there a way to change the color of the arrow displayed on a SearchView when its expanded?
I have tried everything with no results.
To change Back Icon color add below attribute in your android.support.v7.widget.Toolbar
Toolbar
app:collapseIcon="@drawable/back_arrow"
Also to change close button icon add the following piece of code
ImageView searchClose = searchView.findViewById(android.support.v7.appcompat.R.id.search_close_btn);
searchClose.setImageResource(R.drawable.close);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With