I have a view that is animated using TranslateAnimation:
TranslateAnimation translateAnim = new TranslateAnimation(fromX, toX, fromY, toY);
translateAnim.setDuration(SLIDING_SPEED);
translateAnim.setInterpolator(new BounceInterpolator());
translateAnim.setFillAfter(true);
mSlidingView.startAnimation(translateAnim);
The animation works fine but after it's finished I can't click on the view anymore. Instead I can still click on its previous location.
I have searched for similar questions (here, here and here) on StackOverflow but none of them provides any solution. I have heard that the ObjectAnimator fixed this, but is there anything I can do using the previous API? (I don't want to rely on yet another third party library like NineOldAndroids to support the new animation API on pre-honeycomb devices). Oh and I have tried to invalidate the view but it doesn't change anything.
Any idea?
Thanks!