Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oreo - Autofill Framework background highlight color

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

like image 747
Mikhail Sharin Avatar asked Apr 25 '18 10:04

Mikhail Sharin


1 Answers

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">
like image 97
Mikhail Sharin Avatar answered Nov 06 '22 18:11

Mikhail Sharin