Android realizes the jumping ball loading animation effect
•
Android
Let's take a look at the renderings first
To do this animation, you need to master:
1. Attribute animation
2. Path class, canvas class
3. Bessel curve
4. Surfaceview usage
5. Custom attr attribute
6. Architecture: state mode, controller
7. Concepts of free fall, parabola, etc
I won't say more. Just go straight to the code
1.DancingView. java
2.DancingInterpolator. java
3. Custom attribute styles xml
Note: the color, size and parameters can be tested and adjusted by yourself.
The above is the whole content of this article. I hope it can be helpful to your study and work.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码