Yar
Yar

Reputation: 4561

drawable-sw720dp vs drawable-hdpi, drawable-xhdpi and others

I want to provide drawables for:

I have folders:

My original problem was, I thought resources from drawable-sw720dp are not used, but they are! Some graphic designer gave me files with different names and I did not notice. My fault.

So no problem at all.

Upvotes: 1

Views: 1925

Answers (2)

Yar
Yar

Reputation: 4561

My original problem was, I thought resources from drawable-sw720dp are not used, but they are!

Upvotes: 0

Kaushik
Kaushik

Reputation: 6162

For supporting tablets also, use large, xlarge qualifiers. Nexus 7 is a large-hdpi tablet(technically it's tvdpi, but takes images from hdpi). So if you want to put images for Nexus 7, make a folder named drawable-large-hdpi and put the images there.

Now regarding the 10 inch tablets case, they are xlarge devices and their densities can change from mdpi to xhdpi(Nexus 10). But many have resolution of 1280 * 800 and they are mdpi devices.

Create drawable folder like this

// for Phones
drawable-mdpi
drawable-hdpi
drawable-xhdpi
drawable-xxhdpi

//for 7 inch tablets
drawable-large-mdpi
drawable-large-hdpi(for Nexus 7)

// for 10 inch tablets
drawable-xlarge-mdpi
drawable-xlarge-xhdpi(for nexus 10)

Source of answer

Upvotes: 2

Related Questions