Reputation: 1562
How to make layout for galaxy S3 (720x1280 pixels) and galaxy Note (800x1280 pixels).
both are extra high density devices so i need to put two set of images for both devices in same folder drawable-xhdpi.
I dont know how device will detect different different images for both devices because both are from same folder.
please tell me how to make layouts or manage layouts for these two devices in a same application.
Thanks in advance.
Upvotes: 1
Views: 1046
Reputation: 38252
You can distinguish between the devices using the -sw<N>dp
qualifier, which discriminates devices based on their smallest-width attribute.
In your case, you will probably want to add a new folder called drawable-sw400dp
. Drawables in that folder will qualify only for devices with a smallest width of 400dp or greater. Since the Galaxy Note is xhdpi with a smallest width of 800px, it will qualify where the S3 will not.
Upvotes: 3