I need to support an application for bith mdpi, hdpi and xhdpi mobiles and 7' and 10' tablets I have to admit that I'm a bit lost.
So far I only did the tablet version and what I did is :
- one single folder called "layout"
- 3 different folders called "drawable-sw600dp", "drawable-sw800dp" and "drawable-sw1200" containing images of 600px large, 800px large and 1200px large.
I have the impression that I messed it up and that I should have the created standard "drawable-mdpi", "drawable-hdpi" and "drawable-xhdpi" folders.
But if I do so :
- in which folder do I have to put the images for the tablets? xhdpi only?
- how large (in px) should be the images for the tablets?
- how large should be the images for the mobiles?
- and last but not the least : how to have to name the "layout" folders to have a different version for mobiles and tablets?
I already read the Android recommendation like a 1000 times and I am still confused...
EDIT 1
This paragraph from Android website answered my question "how to have to name the "layout" folders to have a different version for mobiles and tablets?"
EDIT 2
Regarding the drawable folders, for mobile phones, it seems quite clear that I have to create 3 folders this way :
- drawable-mdpi containing 320px-width images
- drawable-hdpi containing 480px-width images
- drawable-xhdpi containing 720px-width images
Still remains the question of how to name the different drawable folders for supporting tablets.