我想将 TextInputLayout 中可见的提示颜色设置为我的自定义颜色(蓝色)。不幸的是,到目前为止我所取得的成就是:
如何在我的自定义颜色中设置提示样式?
这就是我到目前为止所做的:
样式.xml
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/police_blue</item>
<item name="colorPrimaryDark">@color/police_blue_dark</item>
<item name="colorAccent">@color/police_blue_light</item>
<item name="android:textColorHint">@color/police_blue_light</item>
<item name="colorControlNormal">@color/police_blue_light</item>
<item name="colorControlActivated">@color/police_blue_light</item>
<item name="colorControlHighlight">@color/police_blue_light</item>
</style>
布局文件.xml
<android.support.design.widget.TextInputLayout
android:id="@+id/login_username_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/login_username"
android:hint="@string/username_hint"
/>
</android.support.design.widget.TextInputLayout>