I went through
TranslateAnimation (float fromXDelta, float toXDelta, float fromYDelta, float toYDelta)
but am still confused about how T
With TranslateAnimation you can create an animation to control an object.
With TranslateAnimation you're able to control the position of an object. You pass this 4 parameters, which stand for the X and Y coordinates.
By Example you want to move an object to the right, you would do something like: TranslateAnimation(0.0f, 1.0f, 0.0f, 0.0f)
(or use Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF)
We only use the X coordinate now, because we are doing now an easy "LeftToRight" animation-move.
Change in X coordinate to apply at the start of the animation
toXDelta (0.0f)
Change in X coordinate to apply at the end of the animation (1.0f)
= 1 to right
Maybe take a look at http://en.wikipedia.org/wiki/Coordinate_system