Like layout-sw600dp, an alternative to drawing

My question is straightforward and simple. Like layout-sw600dp, values-sw600dp, for the layout and values, respectively, which is for the selected folder in relation to the size of the screen.

In another document, I read that if we want to use any screen larger than or equal to 7 inches, we can use the layout-sw600dp folder, and for any smaller device the screen size will take into account the layout folder. So, how can we use the same concept for images. Right now there is a folder ldpi, mdpi, hdpi, but images are taken in accordance with the density of the screen, and not with the size of the screen. Now, if I am developing an application that works both on the device and on the phone, what should be my likely approach for images.

Thank you in advance for your help.

+7
source share
2 answers

you can also use the same concept for drawing as drawable-sw600dp, drawable-sw600dp-mdpi etc. I used this in my application.

+18
source

I am not 100% on this, but I think you can also use the same convention with drawables. Try drawable-sw600dp-hdpi or something similar. Although I also have a few questions that you can answer before continuing:

  • Why do you need a different image (not resolution) for a larger screen?
  • As you already know, a 7-inch device will use the layout-sw600dp folder, so why not give another name for another? That would have looked a lot cleaner, imo.
+3
source

All Articles