My Edit Text underline seems to always be highlighted when focused, I've been trying to have all lines the same color as the first one in the picture, here is my XML code, would anyone know how to have all three lines highlighted (even when other edit text's are not focused)? Thanks in advance!!!
<EditText
android:id="@+id/edit_password_second"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:textColor="@color/edit_text_color"
android:backgroundTint="@color/edit_text_color"
You can try adding a theme
<style name="EditTextTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorControlNormal">@color/primary</item>
<item name="colorControlActivated">@color/primary</item>
<item name="colorControlHighlight">@color/primary</item>
</style>
and set it on your EditText
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/EditTextTheme">
</EditText>
Go to styles.xml
and change <item name="colorAccent">#YOUR_COLOR</item>
to the same color as your EditText's backgroundTint
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