My first open-source Android library-CirclePointMove Chinese document (indicator that can be moved with Viewpager ),

Source: Internet
Author: User

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.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.