jeudi 5 février 2015

android scaleAniamtion display wrong position


Vote count:

0




I have the image, and use scaleAnimation to this:



ScaleAnimation anim = new ScaleAnimation(1, 2, 1, 2, 50, 50);
// anim.setFillAfter(true);
anim.setDuration(800);
imgAlpha.startAnimation(anim);


Run normally. the problem appear when before run animation, I set position of this image to new position:



imgAlpha.setY(-dimmerHeight / 2);


then when image zoom, it move position immedially to other position, not original position. I do not know why. please help me



asked 1 min ago

kemdo

177






android scaleAniamtion display wrong position

Aucun commentaire:

Enregistrer un commentaire