Skip to content Skip to sidebar Skip to footer

Android - How To Findout The Best Match

My device configuration is large-mdpi. But in my app, i have the images only for small-ldpi,normal-mdpi. Here how to findout the best match for this. i think i collects the images

Solution 1:

Don't put size qualifiers on your drawable folders. Just make drawable-ldpi and drawable-mdpi.

Edit: Maybe I answered too quickly. Do you actually have different images for small and large screens at the same density? In that case, my advice is to always have a folder with a more general qualification. It's kind of like default in a switch statement.

In your instance, I'd go with:

drawable-ldpi
drawable-mdpi
drawable-large-ldpi

Post a Comment for "Android - How To Findout The Best Match"