我想添加一个线性布局动画以垂直向上然后缓和到它的原始位置。就像在这个. 但是,我只知道如何在没有缓动的情况下让线性布局上升。
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="800"
android:fromYDelta="50%p"
/>
</set>
这是我为垂直向上添加的动画 xml 文件。