0

I’m developing an app for Android. I test my app in various phones and works great. I have my folders mdpi, hdpi..., xxxhdpi layouts and drawables too. Now I’m facing the tablet problem. I test my app in Google Nexus 10 and the app not looks good. The tablet has a density of 2.0, so when I resize the component all is very small. I dony know if I have to add some other size folder layout or something like that. How can I do to develop an app to work in tablets too? Something is missing and I can’t find it.

Vertexwahn
  • 7,709
  • 6
  • 64
  • 90
user3240604
  • 407
  • 1
  • 8
  • 22
  • maybe this is a help: http://developer.android.com/guide/practices/screens_support.html – Opiatefuchs Mar 04 '16 at 14:32
  • Possible duplicate of [How to prepare layout,drawable folders for 7",10" android tablets for both landscape and portrait?](http://stackoverflow.com/questions/17647507/how-to-prepare-layout-drawable-folders-for-7-10-android-tablets-for-both-lands) – Gueorgui Obregon Mar 04 '16 at 14:34

1 Answers1

0

You can add different layout resources depending on screen size, use these qualifiers:

res/layout-sw600dp/   # For 7” tablets (600dp wide and bigger)
res/layout-sw720dp/   # For 10” tablets (720dp wide and bigger)
res/layout-sw600dp-port/   # For 7” tablets in portrait (600dp wide or bigger)
res/layout-sw720dp-port/  # For 10” tablets in portrait (720dp wide or bigger)

Refer to this question: How to prepare layout,drawable folders for 7",10" android tablets for both landscape and portrait?

Community
  • 1
  • 1
Niels Masdorp
  • 2,534
  • 2
  • 18
  • 31