AndroidtoAppleVectorLogo icon indicating copy to clipboard operation
AndroidtoAppleVectorLogo copied to clipboard

Can't use the Support Library yet!

Open lewismcgeary opened this issue 8 years ago • 5 comments

As stated in Chris Banes article as of Support Library 23.2.0 Path Morphing is not available in the Support Library version of AnimatedVectorDrawable

lewismcgeary avatar Feb 25 '16 12:02 lewismcgeary

Correct. Adding the "vectorDrawables.useSupportLibrary = true" line doesn't help for this.

What is exactly supported on pre-API 21 exactly ? They only mention what's not supported... Also, are there any workarounds or alternative libraries for this?

AndroidDeveloperLB avatar Sep 13 '16 14:09 AndroidDeveloperLB

I assume everything else is supported, but who knows... ¯_(ツ)_/¯ This other example of mine is compatible pre-API 21: https://github.com/lewismcgeary/AnimatedVectorDrawableCompat-play-to-reset-button

As for other libraries, there is vector-compat. It looks like it's no longer being actively developed but seems to support path morphing (I haven't used it personally).

lewismcgeary avatar Sep 13 '16 14:09 lewismcgeary

Nice. Can you please make a tiny sample that shows all possible features we can use for Vector animations? And also show which of them are supported by the support library and which aren't? I don't even care if it looks cool like here.

AndroidDeveloperLB avatar Sep 13 '16 18:09 AndroidDeveloperLB

It's an interesting idea to have a sample demonstrating them all, but it wouldn't be tiny, there's quite a few. You can see from the first part of the VectorDrawable documentation all the properties they have, most of which can be animated.

Not something I have time to do right now, but will hopefully put out more in the future!

lewismcgeary avatar Sep 13 '16 21:09 lewismcgeary

Please let me know if you do it. It can help understanding how to use it.

AndroidDeveloperLB avatar Sep 14 '16 06:09 AndroidDeveloperLB