Nikki
Nikki

Reputation: 3318

Android Tablets resolution and density support

Hello Everyone.........

I am working on android tablets that supports 1280x800 and 1024x600 resolution. What is the best approach for UI design to use dip or px for layout designing. My problem is I want to support all Android Tablets in market with both of these resolutions but there LCD density may vary between 160 to 240 dpi.

Upvotes: 6

Views: 18812

Answers (3)

Andreas Rudolph
Andreas Rudolph

Reputation: 1246

I have just written a blog post to solve your problem: http://onemanmobile.blogspot.com/2012/04/how-to-scale-your-android-layouts-to.html

This will give you a tool so you only have to define your layout xml-files for a single density bucket (small/normal/large/xlarge) and have it scale proportionally for tablets and small devices.

Upvotes: 0

Rajesh Sharma
Rajesh Sharma

Reputation: 603

yes make sure, we make a single layout thate work for all screen or tabs in any density. Android provide multiple support screen features.

<supports-screens android:resizeable="true"
        android:largeScreens="true" android:normalScreens="true"
        android:anyDensity="true"></supports-screens>

and also putup all imeges in

  1. hdpi folder
  2. mdpi folder
  3. ldpi folder

Upvotes: 4

mthpvg
mthpvg

Reputation: 3809

For layout designing dip is definitely the best approach because you have density independence :

http://developer.android.com/guide/practices/screens_support.html

As far as I know, since dpi is dots per inch if you have one resolution you should only have one density.

For calculating easily density see :

http://members.ping.de/~sven/dpi.html

http://en.wikipedia.org/wiki/Comparison_of_Android_devices#Tablet_computers

Upvotes: 3

Related Questions