'Android Autofills For EditText is not Dark/Night Mode friendly

I have a email and password edit text. When Google Autofills popup, the text is not visible in dark mode/night mode. The rest of the app supports night mode with the help of themes.xml.

In the screen captures below, you can see that the text is not very visible in Night/Dark mode.

I have tried adding <item name="android:textColor">@color/my_color</item> in the themes.xml for night and light modes but this doesn't do anything for me.

Night Mode Autofill

enter image description here

Light Mode Autofill

enter image description here



Solution 1:[1]

Try opening the night-theme and change the text colour to white.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hayyan Motsu