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 

layout explaination

(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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -