Oreo - Autofill Framework background highlight color
Asked Answered
S

1

7

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

Siloxane answered 25/4, 2018 at 10:16 Comment(0)
S
12

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">
Siloxane answered 25/4, 2018 at 10:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.