I don't mean make a gif into a background just a background that moves. Thanks in advance. Any help is appreciated.
Asked
Active
Viewed 3,233 times
4

Adrian Cid Almaguer
- 7,815
- 13
- 41
- 63

Sarju Thakkar
- 73
- 1
- 2
- 6
-
You mean like a live wallpaper? – Ojonugwa Jude Ochalifu Mar 29 '15 at 00:16
1 Answers
2
GIFs do not work on the Android framework like people are used to. Instead of using GIFs, try the following to animate a background:
- Get a reference to the widget whose background you want to be animated. For example
TextView tv;
- Remove content so that only the background is visible.
tv.setText("")
- Set custom background to your view.
tv.setBackground("Background here")
- Set an animation to your view
tv.setAnimation(myAnimation)
- Animate your view
tv.startAnimation();
And there you go. There are many examples and resources about animations in the official documentation.

Wander Nauta
- 18,832
- 1
- 45
- 62

Quark
- 402
- 4
- 15