3
我需要一個規模驅動的動畫對話框。我想與反彈的效果做到這一點我試圖反彈插入器如何編輯android動畫插值器?
<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" />
我要修改的反彈效應,使其更慢/更快,尺寸反彈至。我沒有發現任何東西, 牛逼試圖用套
<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?