Is there a way to get the hint color from an EditText?
I need the color to set it as the text color of the EditText too
I guess you could use this:
final ColorStateList colors = editText.getHintTextColors();
editText.setTextColor(colors);
Note that hint color is actually a ColorStateList.
Late response (but worth it). You can use:
<EditText
...
android:textColor="?android:attr/textColorHint" />
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