问题描述
请帮助,我正在玩Android中昼夜模式的一个小示例.到目前为止,一切都很好.我有2张要显示的图像(具有多个尺寸),具体取决于电话模式(白天/夜晚),但是我无法知道如何命名包含这些图像的文件夹(以不同的分辨率),以便一个单独的区别.在适当的时候,下面的图片包含了最后的尝试:
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:
和错误:
我也想将此结构很好地放入单独的风景/人像文件夹中.预先感谢.
Also I would like to have this structure into separate landscape/portrait folders us well. Thanks in advance.
推荐答案
应为/res/drawable-night-**
这篇关于Android drawable-hdpi-night文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!