Sunday, January 17, 2010

[android-developers] Re: Varying screen resolutions

> Step 1: RT[F]M ;^)http://developer.android.com/guide/practices/screens_support.html

Fair enough ;-) though it's not as much fun as chatting on a forum!

> The summary is that you can
> either leave android:anyDensity="false" in your manifest to let the
> platform scale your bitmaps, or you can include bitmaps of different
> sizes for different screen densities.

Well, I read the docs, now that I know they're there, although I can't
say I find them very clear.

I tried various combinations of android:anyDensity and supports-
screens, but the default action seems to have been the best I could
get anyway. I set up two Emulators:

- Android 2.0 (level 5) WVGA800, density 240
- Android 2.0 (level 5) WVGA854, density 240

My app appears fine in the first, but in the second it gets shrunk and
leaves a black border.

Any ideas how I can get this working? Current manifest reads:

<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" />
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="false" />

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate