Is there a way to draw in MotionLayout a view path without canvas.drawPath(path, p)
?
Asked
Active
Viewed 53 times
-1
1 Answers
0
MotionLayout does not provide a drawing API. There are many solutions to this. The simplest no code solution is to Use Lottie (Medium on Lottie animations in MotionLayout) Put a LottieAnimationView in the MotionLayout and drive the progress.
https://airbnb.io/lottie/#/android?id=core-classes The advantage is no code. The disadvantage is it would not be dynamic to the shape of the phone/language
Building your own CustomView that is driven from MotionLayout is also very simple.

hoford
- 4,918
- 2
- 19
- 19
-
Thank you very much for the detailed answer. This information will help quickly engage in the process. – cooper_so Feb 03 '22 at 17:05