Sounds like compatibility mode scaling. If your manifest is properly set up
with minSdk set to 4 or above, I would think it's an emulator bug.
--
Kostya Vasilyev
29.10.2011 15:12 пользователь "Michael A." <[email protected]>
написал:

> I've run into a weird glitch.
>
> Since the early versions of the SDK, I've been using a SurfaceView to
> draw graphics, painting a bitmap into the canvas and then drawing/
> painting on top of it, while adjusting the drawing dependent on the
> density of the phone.
>
> Since SDK14, however, this behavior seems to have changed.
>
> Even though I run it on a 480x800 HDPI view, the SurfaceView returns
> 320x460 in the code for the dimensions of the view and the same for
> the canvas in the code. This of course messes up everything, as I
> still scale my drawing. If I remove the scaling, it works correctly
> again, as the SurfaceView seems to be automatically scaled up
> according to the density settings, but it looks terrible now (since
> the graphics are scaled up 1.5 - before the SurfaceView used the hdpi
> graphics, now it seems to use the mdpi graphics which are then scaled
> up).
>
> Is this intentional? Did I miss a memo somewhere?
>
> --
> 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

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