Skip to content Skip to sidebar Skip to footer

Help With Frame Animation Android

I have been trying to get it to work using this thread but can't seem to get it to work. Frame-by-frame animations I am trying to get the screen to alternate between two layouts an

Solution 1:

I know that this is quite late response but for the others who are facing the same issue here is my solution:

AnimationDrawabledrawable= (AnimationDrawable)getResources().getDrawable(R.anim.amin_list);
ImageViewim= (ImageView) findViewById(R.id.image);
im .setBackgroundDrawable(drawable);
im .post(drawable);

Where amin_list is:

<animation-listandroid:oneshot="false"xmlns:android="http://schemas.android.com/apk/res/android"><itemandroid:drawable="@drawable/progress_1"android:duration="150" /><itemandroid:drawable="@drawable/progress_2"android:duration="150" /><itemandroid:drawable="@drawable/progress_3"android:duration="150" /><itemandroid:drawable="@drawable/progress_4"android:duration="150" /></animation-list>

Post a Comment for "Help With Frame Animation Android"