How set animation-list as xml attribute
You can declare it as
<set xmlns:android="http://schemas.android.com/apk/res/android" >
<scale
android:duration="700"
android:fillAfter="false"
android:fromXScale="0.0"
android:fromYScale="0.0"
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:pivotX="50%"
android:pivotY="50%"
android:toXScale="1.4"
android:toYScale="1.4" />
<scale
android:duration="400"
android:fillBefore="false"
android:fromXScale="1.4"
android:fromYScale="1.4"
android:pivotX="50%"
android:pivotY="50%"
android:startOffset="700"
android:toXScale="0.8"
android:toYScale="0.8" />
</set>
Just a reference. You would have to change animation type and parameters. And as per my knowledge, you will have to start it using java.
Edit:
This is the link that can be helpful for animation list
I think you should first load the animation:
Animation anim = AnimationUtils.loadAnimation(this, R.anim.animation_name);
img.startAnimation(anim);