do i have to be specific with hdpi and mdpi?

205 Views Asked by At

my app is choosing to show mdpi images over there hdpi twins on tablets, unless the mdpi images are removed, then it will gladly use my hdpi images. ive read the docs and other posts and ive tried adding the line;

<supports-screens
android:anyDensity="true"/>

in the manifest but this did nothing noticeable, my question is do the hdpi and mdpi HAVE to be 1.5x apart in size for instance if a 150x150 image is mdpi does the hdpi have to be 225x225 or could it for example be 224x224? does the android system find the closest fit or must it be a perfect match? and if not what could be the issue?

1

There are 1 best solutions below

4
On

I don´t know it 100% but with what I know there is no restricction. What could help you is to create the next 3 folders: drawable-large drawable-xlarge-mdpi drawable-xxhdpi

Android is going to use these ones over the others if its a tablet.

Hope it helps at least.