Tôi đang sử dụng cái mới TextInputLayouttừ thư viện thiết kế. Tôi có thể làm cho nó hiển thị và thay đổi màu sắc của nhãn nổi. Thật không may, EditTextgợi ý thực tế bây giờ luôn luôn là màu trắng.
Tôi đã thử thay đổi gợi ý màu trong XML, kiểu và lập trình và cũng đã thử sử dụng android.support.v7.widget.AppCompatEditText
nhưng EditTextgợi ý luôn hiển thị màu trắng.
Đây là XML của tôi cho tôi TextInputLayoutvà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>
Và đây là phong cách tôi đang sử dụng cho TextInputLayout(Tôi đã thử làm cho hintTextColorthuộc tính màu đen nhưng không làm gì cho tôi):
<style name="GreenTextInputLayout" parent="@style/TextAppearance.AppCompat">
<item name="android:textColor">@color/homestory_green</item>
</style>

