我想在用户触摸屏幕时通过框架动画创建一个框架。我决定使用的图像应该会显示,动画并在触摸的坐标处消失。Android:创建触摸动画
<animation-list xmlns:android=
"http://schemas.android.com/apk/res/android"
android:oneshot="true">
<item android:drawable="@drawable/animation1" android:duration="50" />
<item android:drawable="@drawable/animation2" android:duration="50" />
<item android:drawable="@drawable/animation3" android:duration="50" />
<item android:drawable="@drawable/animation4" android:duration="50" />
</animation-list>
我试图通过drawable.animationdrawable
要做到这一点,但它似乎像我需要有屏幕上的图像中的main.xml
我能做到这一点之前。有没有一种方法,我可以做到这一点,而没有在main.xml中的代码?
<ImageView
android:id="@+id/animation1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
即时通讯不知道我很明白 – Cow