【发布时间】:2020-02-11 17:36:22
【问题描述】:
我的styles.xml
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight"><!-- MaterialComponents theme -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
我的preferences.xml
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
<!-- Default EditTextPreference created by default -->
<EditTextPreference
app:key="signature"
app:title="@string/signature_title"
app:useSimpleSummaryProvider="true" />
</PreferenceScreen>
结果(按钮上的白色文本)
空的新项目。 com.google.android.material:material:1.1.0
如何修复 EditTextPreference 按钮上的文本颜色?
【问题讨论】:
标签: android android-styles material-components-android