My question is - How to change disables EditText
underline color on 17 API? I
have tried with styles and didn't look for disabled param. Any suggestions?
Asked
Active
Viewed 543 times
-6

Phantômaxx
- 37,901
- 21
- 84
- 115

Ivan Sablin
- 3
- 7
-
you can check this > https://stackoverflow.com/questions/37824790/how-to-remove-underline-below-edittext-indicator – Raessa Fathul Alim Mar 06 '18 at 06:30
2 Answers
2
You can set edittext background transprent to remove underline
android:background="@android:color/transparent"

SahdevRajput74
- 754
- 7
- 18
1
Taking answer from here
Below API level 21
To set the color:
editText.getBackground().setColorFilter(color, PorterDuff.Mode.SRC_IN);
To remove the color:
editText.getBackground().clearColorFilter();
Note: when the EditText has focus on, the color you set won't take effect, instead, it has a focus color.

nimi0112
- 2,065
- 1
- 18
- 32
-
Its not sloves my problem. Now underline is grey, i need it white, your solution do not make anything. android:background="@color/white" makes all view white! – Ivan Sablin Mar 06 '18 at 07:12