In an android application I am implementing an Animation
on an ImageButton
. After the animation the button remains at it's last frame but it is only clickable at it's initial position, I have Implemented an BounceInterpolation
animation by these line of code in my main .java Activity
TranslateAnimation translation;
translation = new TranslateAnimation(0f, 0F, 0f, 200);
translation.setStartOffset(150);
translation.setDuration(100);
translation.setFillAfter(true);
translation.setInterpolator(new BounceInterpolator());
mTourButton.startAnimation(translation);
I don't know how to update the the ImageButton
parameters. Most of the solutions are for the xml implemented animations. I didn't find any solution. I am tired now please help.