1. Continuously rotate the canvas and then draw the bitmap. In this way, you will be happy to find that the circles also turn when you pull down.
2. 3. Modify the animation when you drag the icon
3、
4. Let’s take the BOSS WeChat of the social APP as an example, and follow the drop-down refresh effect of the circle of friends.
5. The above is the entire content of this article. I hope it will be helpful to everyone’s study and I hope everyone will support me more.
6. It's just a moving picture~ Make some settings in activity, and after passing it into the icon in the circle of friends, you can get the beginning effect:
7. In this way, you will be happy to find that the progress circle has been adjusted to the left.
8. That's OK!
9. First, add the renderings and compare them with WeChat on your phone. The overall feeling is still OK. The first time I recorded a gif, it was recorded too long, and some intermediate frames were deleted during processing)