• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

TranslateAnimation for layout lose onClickListener of all its childern?

Koson0511

Lurker
I applied some TranslateAnimation to some linear layout, but after the animation is done, all its childern seems to have lost their OnClickListener. (actually not lost, but need to click on the original position of the children in order to trigger the listener, seems the position of each child is not updated, though visually after animation they are in new position). anyone know how to resolve this problem? any property need to set for this?

FYI on the animation code:
TranslateAnimation slide = new TranslateAnimation(100, 40, 0,
0);
slide.setDuration(10);
slide.setFillAfter(true);
 
Back
Top Bottom