2011-06-14 15 views

Respuesta

25

Para girar una imagen que puede hacer esto:

RotateAnimation rotate = new RotateAnimation(0, 360, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); 

ImageView image = findViewById(my image); 
image.setAnimation(rotate); 

rotate.start(); 

Esto hará girar la imagen de una ronda de 0 a 360 grados. Puede establecer la duración demasiado:

rotate.setDuration(500); // milliseconds 
+1

pero la imagen en el fondo (que contiene el imageview no está girando ..) :) y ayudar en esto: =)? – cV2

+1

Necesita establecer la imagen como 'src' de' ImageView', no como 'background – Nick

+0

que he configurado como src pero no está girando, ¿me puede ayudar, por favor? –