Ver Mensaje Individual
  #2  
Viejo 24/12/13, 19:41:04
Avatar de neoadn
neoadn neoadn no está en línea
Usuario muy activo
Mensajes: 632
 
Fecha de registro: abr 2010
Localización: Orense
Mensajes: 632
Modelo de smartphone: Redmi Note 4
Versión de ROM: MIUI
Tu operador: Movistar
Mencionado: 0 comentarios
Tagged: 0 hilos
No se si te funcionará pero prueba con esto, si quieres volver anirmar el boton vuelve a lanzarlo y te deberia de estar animado... pero no se si te funcionará.

Prueba primero este.
Código:
Button b1 = (Button) find.....;

AnimationDrawable frame = (AnimationDrawable) b1.getBackground();
			frame.stop();
			frame.start();

Si no funciona intenta con esté, hace tiempo no me funcionaba de la primera forma y aunque es una tontería ya que para y arranca esté como esté me lo había arreglado.

Código:
Button b1 = (Button) find.....;

AnimationDrawable frame = (AnimationDrawable) b1.getBackground();
		if (frame.isRunning()) {
			frame.stop();
			frame.start();
		} else {
			frame.stop();
			frame.start();
		}
PD- La animación debe de estar en un animation-list

Última edición por neoadn Día 24/12/13 a las 19:45:05
Responder Con Cita