Android drawable-hdpi-night folder
Asked Answered
D

1

36

Please help, I am playing with small example of day-night mode in Android. So far so good. I have 2 images (of multiple size) that I am displaying depending on the phone mode (day/night), unfortunately I can't get it how, to name the folders that contain the images (in different resolution) in order to have a separate distinction. For the proper moment, the picture below contains the last try: Tree structure

and the error:

Error

Also I would like to have this structure into separate landscape/portrait folders us well. Thanks in advance.

Daphnedaphnis answered 30/1, 2017 at 13:58 Comment(0)
S
86

It should be /res/drawable-night-**

Selmore answered 30/1, 2017 at 14:2 Comment(2)
Yes, it worked.Thanks a lot. Please forget the last part of my request. It doesn't have anything to do with the first question.Inconveniency
I have drawable folders: /res/drawable-port-hdpi. When I create an alternative as /res/drawable-night-port-hdpi. It does not compile. :(Centric

© 2022 - 2024 — McMap. All rights reserved.