Skip to content Skip to sidebar Skip to footer

How To Animate The Translation Of A View In Android

I would like to know if somebody knows how to animate the translation of the views programatically, not XML, I have the coordinates where these views should go. This is the creati

Solution 1:

TranslateAnimation animation = new TranslateAnimation(fromX,ToX,FromY,ToY);
layout.startAnimation(animation);

This should work.


Post a Comment for "How To Animate The Translation Of A View In Android"