J'ai créé une animation dans un fichier xml. Je l'applique sur un textview comme celui-ci:En boucle avec un fichier d'animation XML?
Animation anim = AnimationUtils.loadAnimation(this, R.anim.exit_about);
anim.setRepeatMode(Animation.RESTART);
anim.setRepeatCount(Animation.INFINITE);
v.findViewById(R.id.global_about).startAnimation(anim); // v is my view
Cela va une fois, même si je mets un nombre de répétitions. Une idée?
J'ai trouvé la solution dans une autre réponse. Travaille pour moi. À votre santé! https://stackoverflow.com/a/4844448/6049708 –