===============================================================
drawable目录下:
<?xml version="1.0" encoding="UTF-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"android:oneshot="false" >
<item
android:drawable="@drawable/chevron1"
android:duration="200"/>
<item
android:drawable="@drawable/chevron2"
android:duration="400"/>
<item
android:drawable="@drawable/chevron3"
android:duration="600"/>
</animation-list>
===========================================================
layout目录下
<ImageView
android:id="@+id/wave1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/anim" />
===========================================================
启动动画:
ivWave1 = (ImageView) findViewById(R.id.wave1);
mWaveAnimation1 = (AnimationDrawable) ivWave1.getDrawable();
++++++=============+++++++++++++++++++++++++++++++++++++++++++++++