vector-compat icon indicating copy to clipboard operation
vector-compat copied to clipboard

Can vector-compat supports SVG rendering animation path?

Open zhe8300975 opened this issue 9 years ago • 3 comments
trafficstars

Can vector-compat supports SVG rendering animation path? For example “trimPathStart”。I find vector-compat have "vc_trimPathStart" but I would not use it。

if vector-compat supports SVG rendering animation path,How should I use。

I write the Animator, can not be used

<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:duration="1000" android:propertyName="vc_trimPathStart" android:valueFrom="0" android:valueTo="1" android:valueType="pathType" app:vc_valueType="pathType"> </objectAnimator>

zhe8300975 avatar Jan 13 '16 06:01 zhe8300975

I'm not certain of vector-compat's support for trimPathStart, but based on Android's VectorDrawable, it looks as though trimPathStart is a float (not pathType).

twyatt avatar Jan 13 '16 09:01 twyatt

thank you , When parsing collapse, so I tried pathType

if (valueType == VALUE_TYPE_PATH) { evaluator = setupAnimatorForPath(anim, arrayAnimator); } else { throw new IllegalArgumentException("target is not a pathType target"); }

zhe8300975 avatar Jan 13 '16 10:01 zhe8300975

Yes, supporting SVG animations would be awesome! Now you can make them with Adobe Animate CC and exporting them with flash2svg. Look at those svg animated emoticons in the Viber app: http://www.tbyrne.org/viber-animated-svgs

Emasoft avatar Mar 18 '16 19:03 Emasoft