Android 如何创建这种旋转动画?
如何制作这种旋转动画 我制作了如下所示的旋转动画: slide\u up.xmlAndroid 如何创建这种旋转动画?,android,kotlin,animation,Android,Kotlin,Animation,如何制作这种旋转动画 我制作了如下所示的旋转动画: slide\u up.xml <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:duration="100"
<?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>
但这不是来正确的需要在上面给出的链接,所以有人请帮助我这个。
提前谢谢。@a\u local\u请大家回复
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)