I can add underline in spinner using style=\"@style/Base.Widget.AppCompat.Spinner.Underlined\". How can I change color of underline using style only? I dont wan
style=\"@style/Base.Widget.AppCompat.Spinner.Underlined\"
Seems like this question has already been answered. But here is a way to resolve that programatically as well. (Tested on API 19 & Above).
Use ViewCompat for this.
ViewCompat
ViewCompat.setBackgroundTintList(spinner, ColorStateList.valueOf(your_color));