Neil,

I've only done Galaxy Tab tests with the emulator as well, so my observations are somewhat limited, but still, here they are.

The Galaxy Tab reports itself as an HDPI device, even though its actual screen density is 170 dpi. This is to account for the larger display pixel count, and greater viewing distance.

Still, compared to a typical 4" 480x800 hdpi phone screen, the Galaxy Tab can fit more on the screen, since it has more pixels: using a 72x72 icon as a measurement unit, a 480x800 screen can fit 6.6 accross and 11.11 down. The Galaxy Tab can fit 8.33 down and 14.22 across.

This makes images look *smaller relative to the rest of your layout*, even though they are *larger in real world units*, compared to a 4" hdpi phone, and have *same pixel size*.

The gist of all this is: I don't think you can expect an application running on the Tab to look just like it looks on a phone, only larger. So far, this has been the case for phones of varying screen sizes and densities, but for a tablet device, this is no longer true.

Now, if you want to have images in your application just for tablets, you can use "res/drawable-large-hdpi", as phone screens are "normal" and tablet screens are "large" (or possibly "xlarge", new in 2.3). But personally, I found it more useful to focus on making sure that my layouts can be used in landscape mode without vertical scrolling (sometimes creating separate -port and -land versions to achieve this).

Oh, and here is a table comparing the Tab to a 4" hdpi screen:

Pixels  Inches  DPI     Icon    Icons/screen
480     2,06    233,01  72      6,67
800     3,43    233,01  72      11,11

        
        
        
        
Pixels  Inches  DPI     Icon    Icons/screen
600     3,54    169,49  72      8,33
1024    6,04    169,49  72      14,22


-- Kostya

26.01.2011 11:40, Neilz ?????:
Hi all.

I've got the Galaxy Tab emulator running, and was curious to see how
my various apps worked regarding layouts. I've looked at the various
docs on this, but they mostly talk about version 2.3 which I'm not yet
supporting.

My apps generally currently specify:

android:minSdkVersion="3" android:targetSdkVersion="8"

and I have folders for res/drawable and res/drawable-hdpi, and just
the one res/layout folder.

I notice that while the layouts fit nicely, the images are all too
small. So, bearing in mind my current spec above, what do I need to
add to make the apps compatible with tablets, without yet included 2.3
support?



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to