Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

which android folder to resource of night mode, v21+? drawable-night-v21?

I know I can add resources for some Android versions + for night mode.

But what would be the name of the folder for night mode resources of API 21+ ?

drawable-night-v21?

like image 679
Elad Benda Avatar asked Jun 03 '19 17:06

Elad Benda


1 Answers

That should be correct. Based on the legendary "Table 2":

  • night is the qualifier for night mode
  • v21 is the qualifier for API Level 21+ devices
  • night appears higher in Table 2 than does v21, so night appears first in the directory name

So, -night-v21 would be the suffix for any resource directory in which you will have night mode resources to be used on API Level 21+ devices.

like image 135
CommonsWare Avatar answered Sep 20 '22 14:09

CommonsWare