I am using the new TextInputLayout
from the design library. I am able to get it to show and to change the color of the floating label. Unfortunately the actual EditText
hint is now always white.
I have tried changing the hintColor in XML, styles, and programmatically and also tried using the android.support.v7.widget.AppCompatEditText
but the EditText
hint always shows white.
Here is my XML for my TextInputLayout
and EditText
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android.support.design:hintTextAppearance="@style/GreenTextInputLayout">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/city"
android:textColorHint="@color/black"
android:hint="@string/city" />
</android.support.design.widget.TextInputLayout>
And here is the style I am using for the TextInputLayout
(I tried making the hintTextColor
attribute black but didn't do anything for me):
<style name="GreenTextInputLayout" parent="@style/TextAppearance.AppCompat">
<item name="android:textColor">@color/homestory_green</item>
</style>
EditText
for the hint color to be set on all inputs within the view... haven't found any fix to that yet (requestFocus()
andperformClick()
don't do the trick unfortunately). – Mckamey