Can I change the line color on EditText
. When is active it has some greenish color.
Is it possible to change only the color of line when is active, and how can I do this...?
I had the same problem solved it by changing the color of the backgroundTint as follows -
android:backgroundTint="@color/light_color"
You need to set background source for an edit text.
android:background="@drawable/my_theme_edit_text"
for the custom EditText
. Or you can set that background in your app theme - you will find example in .zip file from that siteadd to your themes.xml this line:
<item name="colorAccent">@color/black</item>
this sets the default color for colorControlActivated
which is used to tint widgets
Here you are:
editText.getBackground().setColorFilter(getResources().getColor(R.color.white), PorterDuff.Mode.SRC_ATOP);
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