How to make animated background (onboarding) on android?

Quite often onboarding'and designer portals with different animations, almost small rollers. I can not understand how to do in android something like this or this here

To mind a few options, but they all somehow look strange and each has significant drawbacks :
1. Save animated gifs. Use Movie or custom view to display it
2. To use video (n. PR mp4) and display on SurfaceView or TextureView
3. To use frame by frame animation Android
4. Each animated piece to make a separate view and animate.
5. To draw everything on Canvas
July 9th 19 at 13:25
2 answers
July 9th 19 at 13:27
Solution
As well as animated controls : AnimatedVectorDrawable.
Article: https://habrahabr.ru/company/rambler-co/blog/267073/
Example :
a7e59b48e22a92dcf5703e6b7d0bf4c9.gif38781c9fc2fa46db9c320c89c341cc68.gif
Yes, perhaps the most convenient option. - elda.Cartwrig commented on July 9th 19 at 13:30
July 9th 19 at 13:29
I would have done in the GLES or Canvas depending on complexity.

Find more questions by tags AndroidAnimation