After doing my prior research on the top 10 handsets and tablets in my country, I can classify them as follows:
HANDSETS:
533dp x 320dp
640dp x 360dp
853dp x 480dp
TABLETS:
1280dp x 800dp
960dp x 600dp
So, given that I am supporting API level 11 and up, I will need to include both the older way of specifying the layouts as well as the new. So, my layouts will look as follows for the older versions:
res/layout/my_layout.xml // layout for normal screen size ("default")
res/layout-small/my_layout.xml // layout for small screen size
res/layout-large/my_layout.xml // layout for large screen size
res/layout-xlarge/my_layout.xml // layout for extra large screen size
<< and the corresponding landscape >>
The newer one with sw<N>dp
would look like this (for handsets):
res/layout-sw320dp/my_layout.xml
res/layout-sw360dp/my_layout.xml
res/layout-sw480dp/my_layout.xml
<< and the landscape >>
res/layout-sw320dp-land/my_layout.xml
res/layout-sw360dp-land/my_layout.xml
res/layout-sw480dp-land/my_layout.xml
So, here are the questions:
- Have I added the layouts with newer qualifiers properly?
- The official docs state
426dp x 320dp
and470dp x 320dp
as proper screen sizes as examples. I have a rather strange533dp x 320dp
. Have I made an error in calculating the DP size? - Is the default layout with no qualifiers even needed or is that an overkill?