我正在为我的ImageView
添加一个无限动画。
以下是我的动画代码:
<?xml version="1.0" encoding="utf-8"?>
<scale xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="2000"
android:fromXScale="1.0"
android:fromYScale="1.0"
android:pivotX="70%"
android:pivotY="70%"
android:repeatCount="infinite"
android:startOffset="2000"
android:repeatMode="reverse"
android:toXScale="0.8"
android:toYScale="0.8" />
Java代码如下:
Animation pulse = AnimationUtils.loadAnimation(this, R.anim.pulse);
reviewImage.startAnimation(pulse);
问题在于每次动画后都会有延迟,比如扩展+延迟+折叠+延迟。我只想在一个循环后给出延迟,也就是在扩展+折叠+延迟之后。