【发布时间】:2020-08-14 11:05:27
【问题描述】:
我正在为我的TextInputLayout 创建一个样式,如下所示:
<style name="AppTheme.TextInputLayout.FilledBox" parent="Widget.MaterialComponents.TextInputLayout.FilledBox">
<item name="android:textColorHint">@color/white</item>
<item name="textColorHint">@color/white</item> //This line is not getting recognized.
</style>
android:textColorHint 是提示颜色。
app:hintTextColor 是折叠(浮动)提示颜色。
问题仅发生在 styles 上。如果我将app:hintTextColor 直接设置为TextInputLayout,一切正常。
我正在使用材料设计:
implementation 'com.google.android.material:material:1.2.0-alpha06'
我也在黑貂版1.1.0 上对其进行了测试。不过,同样的问题正在发生。
【问题讨论】:
标签: android material-design android-textinputlayout material-components-android material-components