Question

How can I make 2 separate layout folder for screens that are xxhdpi, and screens that are everything else? Thanks! I have right now just a layout folder for all my layouts

Was it helpful?

Solution

You can have folders under /res that are named as follows (where "xxhdpi" refers to the Density):

  • layout
  • layout-xxhdpi

However, you may actually be referring to the Size of the screen itself, which can be:

  • layout
  • layout-xlarge

as an example...

Please refer to the Android Providing Resources docs for more information on the flavors of folder names for resources.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top