7

Is it possible to change EditText autofill highlight color? By default it has yellow background that may be incompatible with application design.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Mikhail Sharin
  • 3,661
  • 3
  • 27
  • 36

1 Answers1

11

According to Android documentation, to change highlight color you have to edit application theme. You can set color or drawable to android:autofilledHighlight parameter.

<style name="AppTheme" parent="...">
    <item name="android:autofilledHighlight">@color/colorAccent</item>
</style>

To apply theme to an application set theme in AndroidManifest.xml

<application ...
android:theme="@style/AppTheme">
Mikhail Sharin
  • 3,661
  • 3
  • 27
  • 36