If your app is media heavy:
 - place the images into a nodpi directory at 600px width in portrait
mode.
 - on first run
      a) identify the width of the display
      b) scale the images
      c) store the scaled versions in cache or on SD

Why 600? 600px is the largest Android 2 series device and scales
nicely to 540(x0.9), 480(x0.8) and 240(x0.4). Not so much to HTC Hero
and Legend type of devices at 320(x0.53333...)

On Jun 21, 9:01 am, Prem Nair <[email protected]> wrote:
> I'd like to have an image be the same percentage of the height of the
> display on every Android phone, without becoming blurry. I'll have
> ldpi, mdpi, and hdpi versions.
>
> If nothing is possible, then I could also replace them with
> android.graphics.drawable.shapes objects. How many of them can I draw
> on the screen without slowing down a phone (assuming SurfaceView)?

-- 
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