android-developers
[Arriba] [Todas las Listas]

[android-developers] SurfaceView No más largo ajusta tela a medida de p

To: Android Developers <android-developers@xxxxxxxxxxxxxxxx>
Subject: [android-developers] SurfaceView No más largo ajusta tela a medida de pantalla?
From: "Michael A." <michael.akinde@xxxxxxxxx>
Date: Sat, 29 Oct 2011 04:12:01 -0700 (PDT)
Delivery-date: Sat, 29 Oct 2011 07:12:16 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:mime-version:date:user-agent:x-http-useragent :message-id:subject:from:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=/UJZiwivwBnNCOe5adMmQ6T8IPBxvtsdPzO9oK6bZ7w=; b=JiBCll1PcewvY2IiMvdQhE7LwORiM1Q8otinlrEIC2fuNVNoP8gKuKPPYT90kdFVpX BgPYCZzoTJhKWThYgofA9fbNvGU3MHhQsYh6H7vRbUX5CHZDQ2Y3njwmft2JzZ/hD+/O 3DmKEiju9MUQ5tmw/5LaUWRYFdG3k0XEdG3mk=
Envelope-to: traductor@xxxxxxxxxxx
List-archive: <http://groups.google.com/group/android-developers?hl=en_US>
List-help: <http://groups.google.com/support/?hl=en_US>, <mailto:android-developers+help@googlegroups.com>
List-id: <android-developers.googlegroups.com>
List-post: <http://groups.google.com/group/android-developers/post?hl=en_US>, <mailto:android-developers@googlegroups.com>
List-subscribe: <http://groups.google.com/group/android-developers/subscribe?hl=en_US>, <mailto:android-developers+subscribe@googlegroups.com>
List-unsubscribe: <http://groups.google.com/group/android-developers/subscribe?hl=en_US>, <mailto:android-developers+unsubscribe@googlegroups.com>
Mailing-list: list android-developers@xxxxxxxxxxxxxxxx; contact android-developers+owners@xxxxxxxxxxxxxxxx
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx
User-agent: G2/1.0
He corrido a un extraño *glitch.

Desde las versiones tempranas del SDK, he sido utilizando un *SurfaceView para
dibujar gráficos, pintando un *bitmap a la tela y entonces dibujando/
pintura arriba de él, mientras ajustando el dibujo *dependent en
la densidad del teléfono.

Desde SDK14, aun así, este *behavior parece para tener cambiado.

Incluso aunque lo corro en #uno 480*x800 *HDPI vista, el *SurfaceView regresos
320*x460 en el código para las dimensiones de la vista e igual para
la tela en el código. Esto naturalmente desórdenes arriba de todo, cuando yo
todavía escala mi dibujo. Si saco el *scaling, trabaja correctamente
otra vez, cuando el *SurfaceView parece para ser automáticamente *scaled arriba de según
la densidad *settings, pero mira terrible ahora (desde
los gráficos son *scaled arriba de 1.5 - antes del *SurfaceView utilizó el *hdpi
gráficos, ahora parece para utilizar el *mdpi gráficos que son entonces *scaled
arriba de).

Es este intencionado?  Pierdo un *memo *somewhere?

-- 
Recibiste este mensaje porque eres *subscribed al *Google
Grupos "*Android *Developers" grupo.
A correo a este grupo, envía *email a *android-developers@xxxxxxxxxxxxxxxx
A *unsubscribe de este grupo, envía *email a *android-*developers+unsubscribe@xxxxxxxxxxxxxxxx

Puesto que más opciones, visita este grupo en
*http://grupos.*google.*com/Grupo/*android-*developers?*hl=*en

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 android-developers@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-developers+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

<Anterior por Tema] Tema Actual [Siguiente por Tema>