Layout for different screen sizes in Android -
i want app same on screen sizes. read articles, says have different layout folders layout-sw320dp, layout-600dp.. etc. did that. problem is, nexus 5 , nexus 7 uses same layout folder(layout-600dp).
a set of 6 generalized densities:
ldpi (low) ~120dpi mdpi (medium) ~160dpi hdpi (high) ~240dpi xhdpi (extra-high) ~320dpi xxhdpi (extra-extra-high) ~480dpi xxxhdpi (extra-extra-extra-high) ~640dpi
(or) used type of layout folder
res/layout/my_layout.xml // layout normal screen size ("default") res/layout-large/my_layout.xml // layout large screen size res/layout-xlarge/my_layout.xml // layout extra-large screen size res/layout-xlarge-land/my_layout.xml // layout extra-large in
Comments
Post a Comment