Bonjour :
comment je peux changer en permanent la position d'un textview à la fin de l'animation ?
parce que dans le code ci_dessous si relance l’animation commence de sa premier position
en effet faire la même animation
voila mon code :
Merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 Log.i("message","right"); float y= mDonnes[0][2].getHeight(); float x=mDonnes[0][2].getWidth(); animation = new TranslateAnimation(0.0f, x+(Echiquier.step/8), 0.0f, 0.0f); animation.setDuration(SPEED); animation.setFillAfter(true); animation.setFillEnabled(true); // On ajoute un effet d'accélération // Enfin, on lance l'animation mDonnes[0][2].startAnimation(animation);
Partager