java - Android 7 inch tablet 480x800 -


i'm developing android application , have folders in res

  • layout - handstets
  • layout large - handsets big resolution
  • layout-sw600dp - tablets 7 inch 640x1080 resolution
  • layout-sw800dp - 10 inch tablets

but need folder tablets 7 inch low resolution - 480x800.if run application on tablet(7 inch 480x800) ,it use layout folder it's small , seems ugly.how can create layout kind of tablets low resolution,what name of layout folder ?

if device api 13 or higher, can use layout-sw<???>dp qualifier.

for 7 inch tablet, layout-sw600dp correct qualifier. specific tab resolution 480 x 800 should come under category ldpi density.

conversion of px dp: dp = px / (dpi / 160). here px 480 , dpi 120.
dp = 480/(120/160) == 600dp

as alternative, can use layout-large qualifier. again here can use layout-large-ldpi defines tablet.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -