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

Apps TranslateAnimation ???

Discussion in 'Android Development' started by aryaxt, Jun 17, 2010.

  1. aryaxt

    aryaxt Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    21
    Joined:
    Jun 1, 2010

    Jun 1, 2010
    21
    0
    15
    I am using TranslateAnimation to move an object from 1 position to another.
    startX = 1;
    secondX = 100;
    thirdX = 200;

    but the animation doesn't save the new location of the object.
    So when i call it to go to secondX it goes from 1 to 100.
    then, when i call it to go to thirdX instead of going from 100, to 200, it goes from 1 to 200.

    Is the any way to save the location of the object on the screen after the animation is done?
     

    Advertisement

Share This Page

Loading...