With reference to the new TextInputLayout released by Google, how do I change the floating label text color?
Setting colorControlNormal,
Ok, so, I found this answer very helpful and thanks to all the people who contributed. Just to add something, though. The accepted answer is indeed the correct answer...BUT...in my case, I was looking to implement the error message below the EditText widget with app:errorEnabled="true" and this single line made my life difficult. it seems that this overrides the theme I chose for android.support.design.widget.TextInputLayout, which has a different text color defined by android:textColorPrimary.
In the end I took to applying a text color directly to the EditText widget. My code looks something like this:
styles.xml
- @color/my_yellow
- @color/my_yellow_dark
- @color/my_yellow_dark
- @android:color/white
- @color/dark_gray
- @color/light_gray
- true
- false
- @color/dark_gray
- @android:color/black
- @android:color/white
And my widget:
Now it displays black text color instead of the textColorPrimary white.