Image this scenario, I have a bitmap travelling across the screen from left to right and a button which when pressed will call clearAnimation()
When this button is pressed, it calls clearAnimation()
on the travelling bitmap but the bitmap stays in the position (somewhere between left and right) on the screen.
What I actually would like to happen is that when the button is pressed, the bitmap ends up at the end of the animation point (right of the screen)
Any idea how to achieve this please? Below is my animation code
questionAnimation = AnimationUtils.loadAnimation(QuestionActivity.this, R.anim.left_to_right);
questionWrapper.setBackgroundDrawable(getResources().getDrawable(R.drawable.imageview_rounded));
questionWrapper.startAnimation(questionAnimation);