android-developers
[Arriba] [Todas las Listas]

Re: [android-developers] SurfaceView No más largo ajusta tela a medida

To: android-developers@xxxxxxxxxxxxxxxx
Subject: Re: [android-developers] SurfaceView No más largo ajusta tela a medida de pantalla?
From: Kostya Vasilyev <kmansoft@xxxxxxxxx>
Date: Sat, 29 Oct 2011 15:19:41 +0400
Delivery-date: Sat, 29 Oct 2011 07:20:05 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:date :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=Vizm4Aeou51jHdFfgug2WIC+pa4J8vekfqJLYjVyRmY=; b=ULUFBDP6WTk4yTIqDbvd1s96ww9ZOTIoz97OzhPpFEAsVfe+NrXsZjP+PP3BaOb23W aqgS3frf8cbSz5cu8Q6HnQFbtnoar38t64vvkPDEREHPTzoLre+nKplMUMoJqYNlDlV+ kn/eUM1um4aY7xiEgqkoFcS9VIXFKo60YFNR0=
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <f75e78d5-065c-4d7a-9871-92fe83766ec3@a12g2000vbz.googlegroups.com>
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
References: <f75e78d5-065c-4d7a-9871-92fe83766ec3@a12g2000vbz.googlegroups.com>
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx
Sonidos como modo de compatibilidad *scaling. Si vuestro manifestar es correctamente montado
con *minSdk conjunto a 4 o encima, pensaría que es un *emulator *bug.
--
*Kostya *Vasilyev
29.10.2011 15:12 пользователь "Michael Un." <Michael.akinde@xxxxxxxxx>
написал:

> 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

-- 
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
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." <michael.akinde@xxxxxxxxx>
написал:

> 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

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