<?xml version="1.0" encoding="utf-8"?>
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
android:propertyName="rotationX"
android:valueFrom="0"
android:valueTo="-360"
android:repeatCount="infinite">
</objectAnimator>
Run Code Online (Sandbox Code Playgroud)
这是我的对象动画师 xml
//Animating the NormalLayout
final ObjectAnimator anim4 = (ObjectAnimator) //Object animator
AnimatorInflater.loadAnimator(this, R.animator.rotate_four);
//And this is my java code
Run Code Online (Sandbox Code Playgroud)
我想在循环之间添加延迟,例如再次循环之间间隔 3 秒。我尝试过动画监听器之类的东西onRepeat,onEnd但没有成功。我想要循环之间有一些延迟。
任何帮助将不胜感激。