I am looking for a way to change all the spinners underline color, I made an edited version of this answer:
styles.xml
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="android:spinnerStyle">@style/MyCustomSpinner</item>
</style>
<style name="MyCustomSpinner" parent="Widget.AppCompat.Spinner.Underlined">
<item name="android:minHeight">60dp</item>
<item name="colorControlNormal">@color/colorPrimary</item>
<item name="android:textColorSecondary">@color/colorPrimary</item>
<item name="android:colorPrimary">@color/colorPrimary</item>
<item name="android:strokeColor">@color/colorPrimary</item>
</style>
</resources>
None of these work for me, so I noticed there is this comment on that answer:
This won't work if the Spinner is inside a ScrollView. – IgorGanapolsky
And well... all my spinners are inside ScrollViews, so, how to change all the Spinners Underline color inside ScrollViews?