How to make this kind of spin animation?
I have done animation of rotation like shown below:
slide_up.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="100"
android:fromYDelta="0"
android:toYDelta="-100%" />
</set>
MainActivity
val r = RotateAnimation(
30.0f,
90.0f,
Animation.RELATIVE_TO_PARENT,
0.5f,
Animation.RELATIVE_TO_PARENT,
0.5f
)
r.duration = 500
r.repeatCount = 0
binding.llHome.startAnimation(r)
But this is not coming properly as needed in link given above, so someone please help me with this. Thanks in advance.