With reference to the new TextInputLayout
released by Google, how do I change the floating label text color?
Setting colorControlNormal
,
You don't need to use android:theme="@style/TextInputLayoutTheme"
to change the floating label color, since it's going to affect to the entire theme for the small TextView used as label. Instead, you could use app:hintTextAppearance="@style/TextInputLayout.HintText"
where:
<style name="TextInputLayout.HintText">
<item name="android:textColor">?attr/colorPrimary</item>
<item name="android:textSize">@dimen/text_tiny_size</item>
...
</style>
Let me know if the solution works :-)