I am trying to style a material EditText
view:
<style name="AppTheme.EditText" parent="@style/Widget.AppCompat.EditText">
<item name="android:textColor">@color/white</item>
<item name="android:textColorHint">#8AFFFFFF</item>
<item name="colorControlNormal">@color/white</item>
<item name="colorControlActivated">@color/white</item>
<item name="colorControlHighlight">@color/white</item>
</style>
Then I apply the style on my theme:
<style name="AppTheme">
<item name="editTextStyle">@style/AppTheme.EditText</item>
</style>
And apply theme to activity:
<activity
android:name=".MyActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="stateAlwaysHidden"
android:theme="@style/AppTheme">
However this is not changing the underline color.
I know that I can change the accentColor to change the underline color, but I don't want to do that as I need my accent color to be different for some of the other controls.
Can I style the control underline color like this?