Reputation: 4561
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
Reputation: 4561
My original problem was, I thought resources from drawable-sw720dp are not used, but they are!
Upvotes: 0
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)
Upvotes: 2