The following folder structure works fine for the specified devices and permissions:
- drawable-hdpi - for 480x800
- drawable-ldpi - empty
- drawable-mdpi - for 320x480 and 240x320 (mdpi device)
- drawable-sw600dp-tvdpi - for Nexus 7 2012 tvdpi
- drawable-sw600dp-xhdpi - for Nexus 7 2013 xhdpi
The problem is Nexus 10 and Samsung Galaxy Tab 10 (tab with Android 4.0 and mdpi). For processing both devices, I added two separate folders:
- drawable-sw800dp-xhdpi - for Nexus 10 (put 2560x1600 resolution images in this folder)
- drawable-sw800dp-mdpi - for Samsung Galaxy Tab 10 (place images with a resolution of 1280x800 in this folder)
However, both the Nexus 10 and Samsung Galaxy Tab 10 use images with drawable-sw800dp-xhdpi .
What else have I tried?
- drawable-sw720dp-xhdpi - for Nexus 10
- drawable-sw720dp-mdpi - for the Samsung Galaxy 10 tab
Same result: Nexus 10 and Samsung Galaxy Tab 10 use images with drawable-sw720dp-xhdpi.
I also tried using drawable-xlarge-mdpi and drawable-xlarge-xhdpi (remove drawable-sw800dp-mdpi and drawable-sw800dp-xhdpi) to handle the Samsung Galaxy Tab 10, but the Tab with Android 4.0 and xlarge structure is deprecated. Thus, it accepts according to the new directory structure (i.e. Drawable-sw600dp-xhdpi).
Other related things
In the Eclipse graphics editor, the correct images (from drawable-sw800dp-mdpi) are displayed after selecting 10.1 "WXGA (Tablet), which is similar to the Samsung Galaxy Tab 10. However, when I test the same thing in a device or emulator, showing images from drawable -sw800dp-xhdpi.
Manifrest:
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="21" />
Markup:
layout
values:
values values-sw320dp values-sw600dp values-sw800dp
- A separate folder with the ability to copy is required, as some images may not be converted to 9 patch images.
- Please, my question is not about conflicts between nexus 7 and nexus 10 or not between Samsung Galaxy Tab 7 and Samsung Galaxy Tab 10 '.
Question
So what should be the available folders for the Nexus 10 and Samsung Galaxy Tab 10?
source share