drawable-mdpi folder for handsets and tablets

103 views Asked by At

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?

2

There are 2 answers

0
Jignesh Jain On

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

0
activesince93 On

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.