1

I have created values folder like values-mdpi values-hdpi values-xhdpi values-xxhdpi values-sw600dp for 7' tablet values-sw720dp for 10' tablet But it not works perfectly , please suggest better option.

Thanks in advance

2 Answers2

3

Create your folder according to screen size:

  • xlarge screens are at least 960dp x 720dp (values-xlarge)
  • large screens are at least 640dp x 480dp(values-large)
  • normal screens are at least 470dp x 320dp(values-normal)
  • small screens are at least 426dp x 320dp(values-small)

enter image description here

you should use the values-large to support 7 inch screen regardless of the density.

you should use the values-xlarge to support 10 inch screen regardless of the density.

for more details : http://developer.android.com/guide/practices/screens_support.html

Mahmoud
  • 2,683
  • 1
  • 30
  • 32
  • did i manage all resolutions for using this 4 folders ? and also 1 question in this folders put dimens files for margin, height etc , so how define all sizes for different values folder – Bhavin Soni Mar 09 '15 at 10:54
2

Try this: Use values-sw600dp for tab 7 inch values-sw1280dp xxhdpi values-sw480dp mdpi values-sw720dp xhdpi values-sw800dp tab 10 inch these values folder will support most of devices.

Rahul Sharma
  • 5,949
  • 5
  • 36
  • 46