问题
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 from the small-ldpi because our precedence contains small as first.please see this link. is it right? please can anybody help me.
thanks.
回答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
来源:https://stackoverflow.com/questions/9630639/android-how-to-findout-the-best-match