Android Layout Design ldpi or sw -


what difference between layout-ldpi , layout-sw320.i mean when use ldpi,mdpi,hdpi,xhdpi , when use layout-sw?

which 1 used current version of android?

main difference after , before api 13, layout-ldpi before api level13 , layout-sw using versions above 13.

if have layouts larger screen devices such tablets, time stop using -large or -xlarge resource , switch using -swxxdp or -wxxdp qualifiers. latter introduced in api level 13, tablets have support according latest platform version.

res/layout-xlarge/main_activity.xml    # pre-3.2 tablets res/layout-sw600dp/main_activity.xml   # 3.2 , tablets 

like

7" tablets: instead of layout-large, use layout-sw600dp.  10" tablets: instead of layout-xlarge, use layout-sw720dp. 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -