2
I have this animation below in which an Imagemview rotates on its axis for 4 seconds. It rotates even with the same speed the 4 seconds.
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator">
<rotate
android:fromDegrees="0"
android:toDegrees="360"
android:pivotX="50%"
android:pivotY="50%"
android:duration="4000"
android:startOffset="0"/>
</set>
How do I make an animation that starts by rotating normally but decreases until it stops in the same 4 seconds. Example: A car tire. It’s spinning, but when you brake the car, this tire slows down until it stops completely?
ramaral, it worked out! And I wasn’t going to find out any sooner. I started about 20 hours trying to solve it, it was 4 in the morning and I couldn’t. It’s because I’m going the other way... I used Handler, I used for(...) varying setStartOffset, etc. Thank you very much... Hugs...
– Adonis