Skip to content Skip to sidebar Skip to footer

Animation To Show Imageview From Left To Right

Possible Duplicate: Animate ImageView width without scaling What I'm trying to do is to create an animation where an ImageView is shown starting from the left to the right (clip

Solution 1:

Try translate animation as

Animation animation1=newTranslateAnimation(0.0f, 200.0f, 0.0f, 0.0f);
animation1.setDuration(5000);
imageview.startAnimation(animation1);

and you can set your coordinates in TranslateAnimation(fromX, toX, fromY, toY) as I have done in above code

Post a Comment for "Animation To Show Imageview From Left To Right"