First of all create res folder structure as below image.
for 10 inch tablet
In above image you can see like for image make drawable folder like below
for mobile
drawable-hdpi (normal size mobile like 480x800, 480x854 etc.. )
drawable-xhdpi (high resolution scree like 1080x1920, 768x1280 etc..)
drawable-xxhdpi (very high resolution 1440x2560)
for 7 inch tablet
drawable-large
for 10 inch tablet
drawable-xlarge
For making layout folder
for Mobile
layout
for 7 inch
layout-sw600dp-port (portrait)
layout-sw600dp-land (landscape)
for 10 inch
layout-sw720dp-port (portrait)
layout-sw720dp-land (landscape)
For making values folder
for Mobile
values-hdpi
values-xhdpi
for Tablet 7 inch
values-large
for Tablet 10 inch
values-xlarge
And inside values/dimens.xml folder set different value for all folder so you can manage in all verison of device as well as tablet
No comments:
Post a Comment