Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android and playing SVG animation

I'm writing an Android application and I'd like to play a simple SVG animation. I'm aware that Android does not offer SVG support; what are my options here?

like image 513
SK9 Avatar asked Feb 02 '12 16:02

SK9


People also ask

Can Android render SVG?

android-svg supports SVG fairly well. It just doesn't have great support for filters or light sources.

Can I use SVG animation?

SVGs can be styled and animated with CSS (slides). Basically, any transformation or transition animation that can be applied to an HTML element can also be applied to an SVG element. But there are some SVG properties that cannot be animated through CSS that can through SVG.


1 Answers

Starting from Android Lollipop (API level 21) it is possible to implement using AnimatedVectorDrawable.

There are also tools that will help to animate vector drawable shapeshifter and blog post from the author of the tool shapeshifter An Introduction to Icon Animation Techniques.

like image 50
Volodymyr Avatar answered Oct 07 '22 04:10

Volodymyr