Skip to content Skip to sidebar Skip to footer

Why There Is Easing Effect On My Rotating Animation?

I'm trying to develop my first Android app. I read a lots of article about animations. Now there is a ImageView on my layout and i want to rotate it 360 degrees. And this animation

Solution 1:

OK just found answer. I should set linear interpolator to my objectAnimator , not my set .

Like this :

<setxmlns:android="http://schemas.android.com/apk/res/android"android:ordering="sequentially" ><objectAnimatorandroid:duration="3000"android:interpolator="@android:anim/linear_interpolator"android:propertyName="rotation"android:repeatCount="infinite"android:valueTo="360"android:valueFrom="0" /></set>

Post a Comment for "Why There Is Easing Effect On My Rotating Animation?"