Animation button click décalée
Bonjour,
J'ai éffectué ce code sur des Buttons, le problème c'est lorsque je souhaite cliquer sur un bouton, je suis obligé de décaler l'appui sur l'écran par rapport au boutton, y a t-il une solution?:
Code:
1 2 3 4 5 6 7 8 9 10
|
Animation animationToLeft = new TranslateAnimation(200, -200, 0, 0);
animationToLeft.setDuration(20000);
animationToLeft.setRepeatMode(Animation.REVERSE);
animationToLeft.setRepeatCount(Animation.INFINITE);
Button bt = (Button) findViewById(R.id.ButtonOne);
bt.setAnimation(animationToLeft); |
Merci.