Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which theme attribute changes the text color of an EditText's error message

Tags:

In my form I use setError("") on an EditText field. My Application-Theme extends android:Theme.Holo.
I have manually set an image with a dark background for android:errorMessageBackground and android:errorMessageBackgroundAbove.

And now here's the problem: The text color of the error message is also very dark and not readable.

I tried changing different textColor attributes in my Theme, but I wasn't able to find the correct one.

May anyone could help me, please? Thank you! Chris

like image 956
Chris Avatar asked Jul 19 '11 10:07

Chris


People also ask

How to use theme in android studio?

Go to File > Settings, now under IDE settings click on appearance and select the theme of your choice from the dropdown. File > Import Settings , select the file or your choice and select ok a pop up to restart the studio will open up click yes and studio will restart and your theme will be applied.


1 Answers

You can change the text color by using HTML Font Tag.

But for customizing background color, you should make your own custom pop up. For more information, Kindly go through this link:- How to write style to error text of EditText in android?

like image 71
Pradeep Avatar answered Oct 25 '22 10:10

Pradeep