Wish [Wish for Wrap] Backwards compatible VectorDrawables for API <21

fredo

Well-Known Member
Licensed User
Longtime User
https://github.com/wnafee/vector-compat

Information from the Readme file:

vector-compat
A support library for VectorDrawable and AnimatedVectorDrawable introduced in Lollipop with fully backwards compatible tint support (api 14+ so far)

vector-compat provides the necessary tools to make animated icons similar to the new drawer hamburger icon that morphs to a back arrow when clicked. Any other morph animation between icons can be defined purely in xml (no java code required) and the library takes care of the transformation animation. Because they are in vector format, these drawables can be of any height and width with no resulting pixelation.
example.gif
example_1.gif
example_2.gif


The library will transparently fall back to the lollipop implementation of VectorDrawable and AnimatedVectorDrawable on api 21+ devices
 
Top