android-developers
[Arriba] [Todas las Listas]

[android-developers] RotationAnimation Creación en código con toDegree

To: "android-developers@xxxxxxxxxxxxxxxx" <android-developers@xxxxxxxxxxxxxxxx>
Subject: [android-developers] RotationAnimation Creación en código con toDegrees variable tan local? Es allí una manera?
From: Boyd Speer <bspeer@xxxxxxx>
Date: Fri, 16 Aug 2013 18:10:09 -0600 (MDT)
Delivery-date: Fri, 16 Aug 2013 20:12:23 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=subject:from:message-id:date:to:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-transfer-encoding; bh=q3oiCkmnhFJvykxf74K6F9YoY/hX+Hafuq4kC6Xuo5E=; b=lEPOrvireHUSdJQ805JVRUF8n+NSniywPRFvRz4imjDb6/zZP46kOM1EB1sO8Jtlhg qIjM1aqTyaTzApyxLAnwtNLKUtyrW387Pt7nCeF+vrHrROSFtLBnj5R652XRow44ZizB rkcrsd+/7SrmNPMvRGJW/96O8TzEYcPYZie0dOdAsUcSzD52Gp/sDZNheK52c2KP1GAW I3LUzkwRt7y1IT98+sKumvpfAaeEW264LLoBPgcAv4un5DmSoJb6XPBoj87MAy79jBOT lVZydYHWO9ERkvASnn4JZ2ZWy0lzLUxmoH5gNGJn6uuLITcjr1Igy+mGcmJ54W+6v2y6 2aXQ==
Envelope-to: traductor@xxxxxxxxxxx
List-archive: <http://groups.google.com/group/android-developers>
List-help: <http://groups.google.com/support/>, <mailto:android-developers+help@googlegroups.com>
List-id: <android-developers.googlegroups.com>
List-post: <http://groups.google.com/group/android-developers/post>, <mailto:android-developers@googlegroups.com>
List-subscribe: <http://groups.google.com/group/android-developers/subscribe>, <mailto:android-developers+subscribe@googlegroups.com>
List-unsubscribe: <http://groups.google.com/group/android-developers/subscribe>, <mailto:googlegroups-manage+364598216046+unsubscribe@googlegroups.com>
Mailing-list: list android-developers@xxxxxxxxxxxxxxxx; contact android-developers+owners@xxxxxxxxxxxxxxxx
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx
Me gustaría para conseguir entrada de usuario con *EditText (el tipo es firmado número) y (*onButtonClick) utiliza que *char secuencia como el "*toDegrees" atributo de un *RotationAnimation a *rotate un *compass anillo al número de grados que el usuario introdujo. Puedo crear la animación con un número y los trabajos de rotación pero si reemplazo el número con una variable (*float) él  no.
Cualesquier sugerencias mucho apreciadas. Quizás una aproximación totalmente diferente a girar el anillo de grados?


*RotateAnimation *myanim = Nuevo *RotateAnimation (0,278,Animación.RELATIVO_A_*SELF,0.5*f,Animación.RELATIVO_A_*SELF,0.5*f,);

(El encima trabajos)

*float *rot = grados.*getText().*toString();
*RotateAnimation *myanim = Nuevo *RotateAnimation (0,*rot,Animación.RELATIVO_A_*SELF,0.5*f,Animación.RELATIVO_A_*SELF,0.5*f,);

(no trabaja)


-- 
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 *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un *email a *android-*developers+unsubscribe@xxxxxxxxxxxxxxxx.
Puesto que más opciones, visita *https://grupos.*google.*com/Los Grupos/optan_fuera.

I would like to get user input with EditText (type is signed number) and (onButtonClick) use that char sequence as the "toDegrees" attribute of a RotationAnimation to rotate a compass ring to the number of degrees that the user entered. I can create the animation with a number and the rotation works but if I replace the number with a variable (float) it does not.
Any suggestions greatly appreciated. Perhaps a totally different approach to turning the degrees ring?


RotateAnimation myanim = new RotateAnimation (0,278,Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f,);

(The above works)

float rot = degrees.getText().toString();
RotateAnimation myanim = new RotateAnimation (0,rot,Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f,);

(Does not work)


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@xxxxxxxxxxxxxxxx.
For more options, visit https://groups.google.com/groups/opt_out.

<Anterior por Tema] Tema Actual [Siguiente por Tema>
  • [android-developers] RotationAnimation Creación en código con toDegrees variable tan local? Es allí una manera?, Boyd Speer <=