I am new to Android and I am having trouble playing an animated .gif file in the background of my layout. When I run the application the background is a single frame of the
As Martin says, Android does not support GIFs. As a workaround, Android offers Animation List/AnimationDrawable. You will need to convert the GIF into individual frames [.png files]. I use GIMP for the conversion

This GIF can be broken down into its frames:

Save them as frame01.png, frame02.png, and so on, and create an animation-list XML file, say, progress_animation.xml
....
To begin the animation, you need to cast the image to an AnimationDrawable, and call start() on it
AnimationDrawable progressAnimation = (AnimationDrawable) yourImageView.getBackground();
progressAnimation.start();