A
A
artshelom2018-11-17 09:50:48
Android
artshelom, 2018-11-17 09:50:48

How to make Rotate fade out?

I'm making a rotation of the picture, how can I make the rotation speed gradually decrease towards the end?
Here's how I rotate the image:

RotateAnimation rotate = new RotateAnimation(0, 540,
                Animation.RELATIVE_TO_SELF, 0.5f,
                Animation.RELATIVE_TO_SELF, 0.5f);
        rotate.setDuration(1000);
        rotate.setFillAfter(true);
        rotate.setInterpolator(new LinearInterpolator());
        imageDrum.startAnimation(rotate);

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
illuzor, 2018-11-17
@iLLuzor

rotate.setInterpolator(new LinearInterpolator());

Here is the answer. Use a different interpolator.

D
Denis Zagaevsky, 2018-11-17
@zagayevskiy

https://developer.android.com/reference/android/vi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question