android – Replace colours in Lottie animation-ThrowExceptions

Exception or error:

I have a shape with fill colour which is animated over time (several keypoints at the timeline). While the shape is rendered, ColorKeyframeAnimation calculates the current colour based on progress. Is it possible to replace key colours at runtime so the framework calculates the new colours itself? addValueCallback could do the job, but requires me to create interpolation on my own, including the loop (reverse/restart) and keypoints handling.

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *