是否可以更改EditText自动填充高亮颜色?默认情况下,它具有黄色背景,可能与应用程序设计不兼容。
答案 0 :(得分:6)
根据Android文档,要更改突出显示颜色,您必须编辑应用程序主题。您可以将颜色或可绘制设置为android:autofilledHighlight
参数。
<style name="AppTheme" parent="...">
<item name="android:autofilledHighlight">@color/colorAccent</item>
</style>
将主题应用于AndroidManifest.xml
<application ...
android:theme="@style/AppTheme">