0
Comment puis-je faire pivoter une image sur Android? Je vais utiliser l'animation de séquence d'images. Mais je ne connais pas le code Java pour ça.Comment faire pivoter une image dans Android?
Comment puis-je faire pivoter une image sur Android? Je vais utiliser l'animation de séquence d'images. Mais je ne connais pas le code Java pour ça.Comment faire pivoter une image dans Android?
Essayez ceci:
RotateAnimation anim = new RotateAnimation(0, 360,0,0);
anim.setRepeatCount(0);
anim.setDuration(3000);
anim.setFillAfter(true);
ImageView.startAnimation(anim);
Comment puis-je arrêter l'animation – khan
Reportez-vous ce lien pour arrêter l'animation: http://stackoverflow.com/questions/3913750/android-how-to-stop-an-infinite -animation-appliqué-sur-une-imageview – selladurai
essayez ce anim.cancel(); –