android - How to set different size value for same density for different tablet size? -
i have 3 different dimension xml . when set dimens xlarge , big tablet looks fine small tablet not fit -last item shrinking- because both of them getting value same xml "xlarge".
[![1536*2048 320dpi 7''][1]][1]
its looking in small tablet . 1536*2048 320dpi 8.9''
[![2560*1800 320dpi][2]][2]
and big tablet. 2560 * 1800 320dpi 10.1''
i have set different size value same resolution different tablet size .
thanks helping .
you might use device size qualifier, example:
- large/dimension.xml 7'' tablet
- xlarge/dimension.xml 10'' tablet
or else use new size qualifiers suggested google, refer here.
so devices:
- 7'' tablet : 1536*2048 320dpi = 768dp * 1024dp
- 10'' tablet : 2560 * 1800 320dpi = 1280dp * 900dp
you can use, example:
- sw768dp/dimension.xml 7'' tablet
- sw900dp/dimension.xml 10'' tablet
Comments
Post a Comment