I know this question has been asked before but that solution are not working in my case. I want to change edit text bottom line color and tried the solution from other links to add this line to theme in styles.xml
<item name="colorControlNormal">#c5c5c5</item>
but somehow this is not working in my case. I tried changing base theme but still not working for me. And I want to do this with all editext in my app, not just only one. Are there any other ways of doing it??
Edit Style.xml under values folder.
<style name="Theme.App.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorControlNormal">#c5c5c5</item>
<item name="colorControlActivated">#c5c5c5</item>
<item name="colorControlHighlight">#c5c5c5</item>
</style>
create a file edittextborder.xml in drawable folder and write
?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item><shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="#ffffff" />
</shape></item>
</selector>
and Set this file as:
android:background="@drawable/edittextborder"
in editText.
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