我正在使用下面的动画在android中获得心跳效果,但动画看起来心脏符号越来越小,然后变大,但我想要反转效果(首先它应该变大,然后变小)。
我真的不知道如何修改这个动画来获得这么大的图像。
使用的动画:
<scale xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:fromXScale="1"
android:fromYScale="1"
android:pivotX="50%"
android:pivotY="50%"
android:repeatCount="1"
android:repeatMode="reverse"
android:toXScale="0.5"
android:toYScale="0.5" />请帮我解决这个问题。
发布于 2013-10-29 13:50:37
听起来像是你在找这样的东西。编辑自/至比例以获得所需的效果。
<scale xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:fromXScale="1"
android:fromYScale="1"
android:pivotX="50%"
android:pivotY="50%"
android:repeatCount="1"
android:repeatMode="reverse"
android:toXScale="1.5"
android:toYScale="1.5" />发布于 2013-10-29 13:55:20
尝试这个animation..animates视图到小的和大的,反之亦然
<scale xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:fromXScale="0.5"
android:fromYScale="0.5"
android:pivotX="50%"
android:pivotY="50%"
android:repeatCount="infinite"
android:repeatMode="reverse"
android:toXScale="1.5"
android:toYScale="1.5" />https://stackoverflow.com/questions/19650646
复制相似问题