Xin chào, tôi đang sử dụng TextInputLayout trong ứng dụng của mình. Tôi muốn đặt màu văn bản gợi ý và màu nhãn nổi (cả tập trung và không tập trung) thành màu trắng. Tôi đã thử mã dưới đây.cách thay đổi màu văn bản gợi ý của textinputlayout
<android.support.design.widget.TextInputLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:theme="@style/TextLabel">
<android.support.v7.widget.AppCompatEditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Hiiiii"
android:id="@+id/edit_id">
</android.support.v7.widget.AppCompatEditText>
</android.support.design.widget.TextInputLayout>
<style name="TextLabel" parent="TextAppearance.AppCompat">
//hint color And Label Color in False State
<item name="android:textColorHint">@color/Color Name</item>
<item name="android:textSize">20sp</item>
//Label color in True State And Bar Color False And True State
<item name="colorAccent">@color/Color Name</item>
<item name="colorControlNormal">@color/Color Name</item>
<item name="colorControlActivated">@color/Color Name</item>
</style>
Nó hoạt động bình thường cho kẹo nhưng không phải cho các phiên bản thấp hơn. Tôi có thể đạt được điều tương tự trong các phiên bản thấp hơn không?