Various loading and circular progress effects, loading circular progress Effects
Recently, the APP's progress loading effect needs to be modified to simulate the IOS color gradient effect. At the beginning, 12 images are rotated sequentially and placed in the animation-list to implement frame animation, after implementation, the effect is not very smooth. Later I thought of putting a loading image into the ImageView, and then the ImageView starts the rotation animation. After implementation, the effect is very good. anim file:
<? Xml version = "1.0" encoding = "UTF-8"?> <Set xmlns: android = "http://schemas.android.com/apk/res/android"> <rotate android: fromDegrees = "0" android: toDegrees = "359" android: duration = "1000" android: repeatCount = "-1" android: rjtx = "50%" android: 0000ty = "50%"/> </set>
To study this problem, I read a lot of online materials. Most of the results of progress are to create an animation file and display it to ProgressBar. Most of the results may be stuck if they are not very good, if the above method does not solve this problem, we will organize all the recently viewed materials into a Demo. The first loading effect is the implementation of the ImageViewy rotation animation, and the Demo will be downloaded.
QQ group: 6399844. welcome to join us!