i want to start a second animation-list after the end of first animation-list first animation-list is(list_first):
<?xml version="1.0" encoding="utf-8"?>
<item
android:drawable="@drawable/f11"
android:duration="500"/>
<item
android:drawable="@drawable/delay"
android:duration="1000"/>
<item
android:drawable="@drawable/f12"
android:duration="500"/>
<item
android:drawable="@drawable/delay"
android:duration="1000"/>
</animation-list>
Second animation-list is(list_second):
<?xml version="1.0" encoding="utf-8"?>
<item
android:drawable="@drawable/s21"
android:duration="500"/>
<item
android:drawable="@drawable/delay"
android:duration="1000"/>
<item
android:drawable="@drawable/s22"
android:duration="500"/>
<item
android:drawable="@drawable/delay"
android:duration="1000"/>
</animation-list>
now how to start the second animation list at the end of first list?
ImageView img1;
TextView t1;
AnimationDrawable splashanimation;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.anim_layout);
img1= (ImageView)findViewById(R.id.anim_imgview);
img1.setBackgroundResource(R.drawable.list_first);
splashanimation = (AnimationDrawable)img1.getBackground();
splashanimation.start();
Now over here i am not getting what to do to ? how to start the second animation list on the end of first list..please suggest