Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zoom in Animation

I am using RotateAnimation for image. But I also want zoom on image with animation. Means when my image is rotate then image is also zooming...

How can I do zoom with rotate animation?

like image 405
Niranj Patel Avatar asked Mar 02 '11 12:03

Niranj Patel


1 Answers

In anim xml, you can work with scale like this:

<scale
    android:pivotX="50%"
    android:pivotY="50%"
    android:fromXScale=".1"
    android:fromYScale=".1"
    android:toXScale="1.0"
    android:toYScale="1.0"
    android:duration="2000" />
like image 106
Komi Avatar answered Oct 11 '22 16:10

Komi