Bonsoir, J'ai un bouton qui me permet d'aller vers une nouvelle activité android, sur lequel j'ai crée aussi une animation, l'animation se lance mais ne se termine pas, elle est interrompu et je me trouve dans la nouvelle activité.
Comment gérer ceci ?
Merci .
Voila mon code en cas de besoin:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 cafes.setOnClickListener(new OnClickListener() { public void onClick(View arg0) { RotateAnimation rotation=new RotateAnimation(Animation.RELATIVE_TO_SELF, 360); rotation.setDuration(500); imageChoixMachines.startAnimation(rotation); Intent intent = new Intent(CafeEtCapsulesActivity.this, PresentationMachines.class); startActivity(intent); } });
Partager