0

I am developing an Android application for handsets and tablets. I have images in drawable-mdpi folder for handsets, I have an mdpi tablet that gets resources from drawable-mdpi. How can I make difference between mdpi handsets and mdpi tablets?

Anthon
  • 69,918
  • 32
  • 186
  • 246
Najoua Mahi
  • 304
  • 3
  • 16
  • 1
    duplicate question. http://stackoverflow.com/questions/8255985/how-to-support-different-screen-size-in-android follow this link – RamBabu Pudari May 22 '15 at 10:39

2 Answers2

0

simply do it with dimen

for Handset use default values dimens.xml

values-sw600dp for 7 inch Tablate add dimens.xml

values-sw720dp 10 inch Tablate add dimens.xml

also create drawable-sw600dp and drawable-sw720dp

Jignesh Jain
  • 1,518
  • 12
  • 28
0

You will find solution in these two links.

  1. For understanding drawable folder properties here
  2. For differentiating tablets and devices here

Hope this helps.

Community
  • 1
  • 1
activesince93
  • 1,716
  • 17
  • 37