As per Googles Material Guidelines:
https://material.io/guidelines/components/text-fields.html#text-fields-layout
TextInputLayout hint should be the same color as the Error message:
However it is not like that and when I call setError("My error")
only the underline and the error message show up in red.
How can I change this behavior to account for Google's own guidelines?
here is how you can do it
style.xml
colors.xml
EDIT
we can do manipulate the error and hint colours in code also using
TextInputLayout in Xml
text_Apearence in style.xml file from resourses
Image Looks Like
Now this is default behaviour. To achieve this, just update your support library version to 28+.