In my spare time I'm learning android. I want to create a layout with a background image which includes an animation.
I know how to use linearLayout.setBackgroundDrawable(R.drawable.BlaBla)
but if I place a gif image it becomes a static image but not animated. Also, I'm not sure if I can play a video on it. Can anyone post a simple code or just give the directions about that if possible? Minsdk version will be 8 (2.2).
PS: I know I can use media to play videos using VideoView
but it's not a layout, therefore, I can't add some views on it. Please don't suggest that.