-
-
Notifications
You must be signed in to change notification settings - Fork 257
Flow animation #73
Comments
You could use, RichPathAnimator
.animate(yourPath)
.trimPathOffset(0f, 1.0f)
.start() and don't fill <vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="64dp"
android:width="64dp"
android:viewportHeight="600"
android:viewportWidth="600" >
<path
android:name="yourPath"
android:strokeColor="#ff0000"
android:strokeWidth="10dp"
android:pathData="M300,70 l 0,-70 70,70 0,0 -70,70z" />
</vector> Note: there is a limitation here where |
Tried your sample but could not get it. I'm actually considering the whole fill area as a single path and stroke as another path. I could only get fade in animation while filling. |
Here is what I've achieved so far, just want to implement the animation like flow animation mentioned above. |
Unfortunately, it's impossible to get exactly that flow animation you mentioned above by using RichPath but you could get a trimming path animation like the example I posted above. |
HI tarek, thank you very much for this very useful library. I am trying to implement something like below: color flow animation, don't know how to.

The text was updated successfully, but these errors were encountered: