Is there any specific resource folder in android for dark mode drawables only?
Asked Answered
T

1

9

When I turn on dark mode in my app, the icon of some dialogs is not visible because they are dark. I created those drawables with the "New Image Asset" option in the Android studio. is there any specific resource folder for dark mode drawables?

Theca answered 11/6, 2020 at 14:20 Comment(1)
You can check #41938178Endothelioma
H
11

You can use the folders like:

res\drawable-night\
.....
res\drawable-night-xxhdpi
res\drawable-night-xxxhdpi

In general if you need to use the night qualifier ,appending multiple qualifiers, you must place them in the same order in which they are listed in table reported in the doc. If the qualifiers are ordered wrong, the resources are ignored.

Huberman answered 11/6, 2020 at 14:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.