【发布时间】:2013-07-31 10:58:15
【问题描述】:
我需要制作一个比例驱动的动画对话框。我想使用反弹插值器尝试过的反弹效果
<scale xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="500"
android:fromXScale="0"
android:fromYScale="0"
android:interpolator="@android:anim/bounce_interpolator"
android:toXScale="1"
android:toYScale="1" />
我想修改反弹效果,使其更慢/更快,以及反弹的大小。我什么都没找到, T试图用套装来制作它
<set >
<scale
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="500"
android:fromXScale="0"
android:fromYScale="0"
android:toXScale="1"
android:toYScale="1" />
<scale
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="100"
android:fromXScale="1"
android:fromYScale="1"
android:startOffset="500"
android:toXScale=".8"
android:toYScale=".8" />
<scale
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="100"
android:fromXScale=".8"
android:fromYScale=".8"
android:startOffset="600"
android:toXScale="1"
android:toYScale="1" />
</set>
整个动画表现的很奇怪? 所以我的问题是如何通过设置修复这个动画或者如何修改bounce_interpolator?
【问题讨论】:
标签: android animation scale interpolation bounce