1. Download our Official Android App: Forums for Android!

TranslateAnimation for layout lose onClickListener of all its childern?

Discussion in 'Android Apps & Games' started by Koson0511, Mar 24, 2011.

  1. Koson0511

    Koson0511 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    5
    Joined:
    Mar 17, 2011

    Mar 17, 2011
    5
    0
    5
    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);
     

    Advertisement

Share This Page

Loading...