My first open-source Android library-CirclePointMove Chinese document (indicator that can be moved with Viewpager ),
Github URL: https://github.com/Stars-One/CirclePointMove
This open-source library is an encapsulated Viewpager indicator. When I was learning this, I wanted to implement the function of moving a small dot following Viewpager. After searching for a long time on github, I found that the indicators of the great gods are very powerful, the settings are also complicated, and I am a little overwhelmed.
After that, I patiently studied the function of moving small dots. I just wanted to create an open-source library to directly implement the function of small dots. Combined with the previously learned custom View, after two days of hard research, I searched a lot of materials and finally succeeded in doing so!
Does it mean that the document on github is too powerful? I won't tell you that the English document on Github was written by myself.
I was a little nervous and excited when I first made an open-source library. I wrote many instructions about the open-source library, this is also my turn to write documents, haha
Preview:
1. Add dependency
maven{url'https://jitpack.io'}
compile 'com.github.Stars-One:CirclePointMove:v1.1'
Tip: It is recommended that the width and height be equal to the value in the graph. If you are not satisfied with the image, you can change the size value to change the height.
Remember to modify the count value before using it. You can enter a few items in your viewpager.
3. Set the adapter of Viewpager, and then set OnPageChangeListener4. find circlepointmove4through findviewbyid. onPageScrolled in OnPageChangeListener calls the setonPageScrolled method of CirclePointMove.
TIPS: If you want to use the above attributes, remember to add nameplace, as shown in figure
If you think it's good, remember to use star !!
You can also give me a red envelope appreciation. Haha, to be honest, I wrote this project for two nights.