Skip to content

Instantly share code, notes, and snippets.

@nitindhar7
Created October 17, 2011 03:08
Show Gist options
  • Save nitindhar7/1291855 to your computer and use it in GitHub Desktop.
Save nitindhar7/1291855 to your computer and use it in GitHub Desktop.
Starting an animation using split frames from an animated gif
ImageView spinner = (ImageView) findViewById(R.id.spinner);
spinner.setBackgroundResource(R.drawable.spinner);
AnimationDrawable frameAnimation = (AnimationDrawable) spinner.getBackground();
frameAnimation.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment