En mi proyecto tengo un botón. cuando el usuario hace clic en él, se muestra y la animación después de eso debe cargar otra actividad.Android, ¿Cómo puedo saber que la animación ha finalizado?
@Override
public void onClick(View v) {
switch (v.getId()){
case R.id.btnReadPage:
startAnimation();
//stopAnimation();
//Toast.makeText(this, "Read Page Clicked", Toast.LENGTH_SHORT).show();
//startActivity(new Intent(this, ReadPage.class));
return;
}
}
acuerdo con el código de seguridad (startActivity, comentó), cuando corro la aplicación y haga clic en el botón, la animación se reproducirá. pero si lo descomente debido a la animación de transición rápida no se muestra. ¿Cómo puedo informar que la animación ha terminado? Gracias
http://stackoverflow.com/questions/4750939/android-animation-is-not-finished-in-onanimationend –
Salida la respuesta aquí. http://stackoverflow.com/questions/2214735/android-animationdrawable-and-knowing-when-animation-ends – pierrotlefou
buena pregunta :) –