0
我現在正在做的是一種聲波,並做到這一點我已經創建了一個動畫增加高度動畫提升高度
請看到這張照片
所以我的問題是該動畫作品,並但它增加高度我想讓它反向增長
希望你能幫助我謝謝
所以我的代碼是在這裏
<scale
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:fromXScale="1.0"
android:toXScale="1.0"
android:fromYScale="1.0"
android:toYScale="0.5"
android:duration="2000"
android:fillAfter="false"
android:repeatMode="reverse"
android:repeatCount="infinite"/>
Animation animation = AnimationUtils.loadAnimation(context, R.anim.sound_wave);
view.setAnimation(animation);
view.animate();
animation.start();
謝謝主席先生。 這正是我所需要的。 – Beginner