Android可绘制动画速度控制

Android可绘制动画速度控制,android,animation,drawable,Android,Animation,Drawable,我在animation.xml中有几个图像 <animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false" > <item android:drawable="@drawable/anim1" android:duration="200" /> <item android:drawable="@drawable

我在animation.xml中有几个图像

<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item
    android:drawable="@drawable/anim1"
    android:duration="200" />
<item
    android:drawable="@drawable/anim2"
    android:duration="400"/>
<item
    android:drawable="@drawable/anim3"
    android:duration="400"/>
是否可以保留此表单?我是说,第一张图像的格式为android:duration=“200”,其余图像的格式为android:duration=“400”,并允许用户通过微调器选择动画的速度

ImageView view = (ImageView) findViewById(R.id.view);
view.setBackgroundResource(R.drawable.view_animation);
AnimationDrawable animation = (AnimationDrawable) view.getBackground();
animation.start();