-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate away from JCenter #115
Labels
Comments
Hello @steffandroid |
Awesome! Thanks for the confirmation. |
Any news about migration ? |
Hello there, |
Closed
Closed
Gozirin
added a commit
to Gozirin/Dots.Indicator
that referenced
this issue
Feb 18, 2023
# Material View Pager Dots Indicator ![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.tbuonomo/dotsindicator/badge.svg) [![Android Arsenal]( https://img.shields.io/badge/Android%20Arsenal-Material%20View%20Pager%20Dots%20Indicator-green.svg?style=flat )]( https://android-arsenal.com/details/1/7127 ) <a href="https://github.com/JStumpp/awesome-android"><img alt="awesome" src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" /></a> This library makes it possible to represent View Pager Dots Indicator with 3 different awesome styles ! It supports ViewPager and ViewPager2 ![materialdots](https://user-images.githubusercontent.com/15737675/40272405-d7c5f192-5bac-11e8-9231-551c23ba7ef1.gif) __Check out the sample demo:__ [![sampledemo](https://user-images.githubusercontent.com/15737675/39397282-08bedebe-4afd-11e8-9ea0-afe8330ad3b0.png)](https://appetize.io/app/f85p663e4b51tgc6qrd1k4vbv8) Don't forget to star the project if you like it! ![star](https://user-images.githubusercontent.com/15737675/39397370-85f5b294-4afe-11e8-9c02-0dfdf014136a.png) == ![heart](https://user-images.githubusercontent.com/15737675/39397367-6e312c2e-4afe-11e8-9fbf-32001b0165a1.png) Feel free to submit issues and enhancement requests ! ![ezgif com-optimize](https://user-images.githubusercontent.com/15737675/38327474-981fcae0-3848-11e8-84f9-f3fefcc25ca6.gif) ![ezgif com-crop 8](https://user-images.githubusercontent.com/15737675/38330761-b64c7f3c-3851-11e8-9268-235ba8638467.gif) ## How to #### Gradle ```Gradle repositories { google() mavenCentral() } dependencies { implementation("com.tbuonomo:dotsindicator:4.3") } ``` ## DotsIndicator ![ezgif com-crop 1](https://user-images.githubusercontent.com/15737675/38328329-e7008c06-384a-11e8-8449-9f2e396d2bc5.gif) ![ezgif com-crop 3](https://user-images.githubusercontent.com/15737675/38328570-8f1e8230-384b-11e8-9be7-738932a4f85e.gif) #### In your XML layout ```Xml <com.tbuonomo.viewpagerdotsindicator.DotsIndicator android:id="@+id/dots_indicator" android:layout_width="wrap_content" android:layout_height="wrap_content" app:dotsColor="@color/material_white" app:dotsCornerRadius="8dp" app:dotsSize="16dp" app:dotsSpacing="4dp" app:dotsWidthFactor="2.5" app:selectedDotColor="@color/md_blue_200" app:progressMode="true" /> ``` #### Custom Attributes | Attribute | Description | | --- | --- | | `dotsColor` | Color of the dots | | `selectedDotColor` | Color of the selected dot (by default the `dotsColor`) | | `progressMode` | Lets the selected dot color to the dots behind the current one | | `dotsSize` | Size in dp of the dots (by default 16dp) | | `dotsSpacing` | Size in dp of the space between the dots (by default 4dp) | | `dotsWidthFactor` | The dots scale factor for page indication (by default 2.5) | | `dotsCornerRadius` | The dots corner radius (by default the half of dotsSize for circularity) | #### In your Java code ```Java dotsIndicator = (DotsIndicator) findViewById(R.id.dots_indicator); viewPager = (ViewPager) findViewById(R.id.view_pager); adapter = new ViewPagerAdapter(); viewPager.setAdapter(adapter); dotsIndicator.attachTo(viewPager); ``` #### In your Kotlin code ```Kotlin val dotsIndicator = findViewById<DotsIndicator>(R.id.dots_indicator) val viewPager = findViewById<ViewPager>(R.id.view_pager) val adapter = ViewPagerAdapter() viewPager.adapter = adapter dotsIndicator.attachTo(viewPager) ``` ## SpringDotsIndicator ![ezgif com-crop 4](https://user-images.githubusercontent.com/15737675/38329136-2c470ef0-384d-11e8-88a8-c8719dc1d0b7.gif) ![ezgif com-crop 5](https://user-images.githubusercontent.com/15737675/38329293-b87f68a4-384d-11e8-8a04-c560c60dac7c.gif) #### In your XML layout ```Xml <com.tbuonomo.viewpagerdotsindicator.SpringDotsIndicator android:id="@+id/spring_dots_indicator" android:layout_width="wrap_content" android:layout_height="wrap_content" app:dampingRatio="0.5" app:dotsColor="@color/material_white" app:dotsStrokeColor="@color/material_yellow" app:dotsCornerRadius="2dp" app:dotsSize="16dp" app:dotsSpacing="6dp" app:dotsStrokeWidth="2dp" app:stiffness="300" /> ``` #### Custom Attributes | Attribute | Description | | --- | --- | | `dotsColor` | Color of the indicator dot | | `dotsStrokeColor` | Color of the stroke dots (by default the indicator color) | | `dotsSize` | Size in dp of the dots (by default 16dp) | | `dotsSpacing` | Size in dp of the space between the dots (by default 4dp) | | `dotsCornerRadius` | The dots corner radius (by default the half of dotsSize for circularity) | | `dotsStrokeWidth` | The dots stroke width (by default 2dp) | | `dampingRatio` | The damping ratio of the spring force (by default 0.5) | | `stiffness` | The stiffness of the spring force (by default 300) | #### In your Java code ```Java springDotsIndicator = (SpringDotsIndicator) findViewById(R.id.spring_dots_indicator); viewPager = (ViewPager) findViewById(R.id.view_pager); adapter = new ViewPagerAdapter(); viewPager.setAdapter(adapter); springDotsIndicator.attachTo(viewPager); ``` #### In your Kotlin code ```Kotlin val springDotsIndicator = findViewById<SpringDotsIndicator>(R.id.spring_dots_indicator) val viewPager = findViewById<ViewPager>(R.id.view_pager) val adapter = ViewPagerAdapter() viewPager.adapter = adapter springDotsIndicator.attachTo(viewPager) ``` ## WormDotsIndicator ![ezgif com-crop 6](https://user-images.githubusercontent.com/15737675/38329969-9cf3de2e-384f-11e8-9ada-fa3fbef04d80.gif) ![ezgif com-crop 7](https://user-images.githubusercontent.com/15737675/38330079-f35908fc-384f-11e8-85aa-4daf64c73115.gif) #### In your XML layout ```Xml <com.tbuonomo.viewpagerdotsindicator.WormDotsIndicator android:id="@+id/worm_dots_indicator" android:layout_width="wrap_content" android:layout_height="wrap_content" app:dotsColor="@color/material_blueA200" app:dotsStrokeColor="@color/material_yellow" app:dotsCornerRadius="8dp" app:dotsSize="16dp" app:dotsSpacing="4dp" app:dotsStrokeWidth="2dp" /> ``` #### Custom Attributes | Attribute | Description | | --- | --- | | `dotsColor` | Color of the indicator dot | | `dotsStrokeColor` | Color of the stroke dots (by default the indicator color) | | `dotsSize` | Size in dp of the dots (by default 16dp) | | `dotsSpacing` | Size in dp of the space between the dots (by default 4dp) | | `dotsCornerRadius` | The dots corner radius (by default the half of dotsSize for circularity) | | `dotsStrokeWidth` | The dots stroke width (by default 2dp) | #### In your Java code ```Java wormDotsIndicator = (WormDotsIndicator) findViewById(R.id.worm_dots_indicator); viewPager = (ViewPager) findViewById(R.id.view_pager); adapter = new ViewPagerAdapter(); viewPager.setAdapter(adapter); wormDotsIndicator.attachTo(viewPager); ``` #### In your Kotlin code ```Kotlin val wormDotsIndicator = findViewById<WormDotsIndicator>(R.id.worm_dots_indicator) val viewPager = findViewById<ViewPager>(R.id.view_pager) val adapter = ViewPagerAdapter() viewPager.adapter = adapter wormDotsIndicator.attachTo(viewPager) ``` ## Support of ViewPager2 The `attachTo` can take a `ViewPager` or a `ViewPager2` ## Help Maintenance If you could help me to continue maintain this repo, buying me a cup of coffee will make my life really happy and get much energy out of it. <a href="https://www.buymeacoffee.com/tommybuonomo" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/purple_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a> ## Changelog ### 4.3 - Fix [#144][i144], [#143][i143], [#139][i139], [#135][i135], [#133][i133], [#131][i131], [#126][i126], [#109][i109], [#95][i95], [#93][i93], [#86][i86], [#85][i85], [#80][i80], [#78][i78], [#73][i73], [#68][i68], [#58][i58] - Methods `setViewPager` and `setViewPager2` are now deprecated and replaced by `attachTo(...)` ### 4.2 Fix [#115](tommybuonomo/dotsindicator#115) The library is now on MavenCentral. The library name moves from `com.tbuonomo.andrui:viewpagerdotsindicator` to `com.tbuonomo:dotsindicator` ### 4.1.2 Fix [#55][i55] and [#56][i56] ### 4.1.1 Fix crash ### 4.1 - Support RTL (fix [#32][i32] and [#51][i51]) ### 4.0 - Support of ViewPager2 (fix [#40][i40]) - Convert all the project to Kotlin - Migration to AndroidX - Fix [#37][i37]: findViewById, causing missing adapter error ### 3.0.3 - Fix [#20][i20]: Dots indicator initialises with the wrong number of dots initially ### 3.0.2 - Add attribute `selectedDotColor` and `progressMode` to `DotsIndicator` - Fix RTL issues and improve `DotsIndicator` globally ### 2.1.0 - Add attribute `dotsStrokeColor` to `SpringDotsIndicator` and `WormDotsIndicator`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JFrog has just announced that it will be shutting down JCenter on May 1st. JCenter is the sole repository hosting this library, so it will become unavailable after this date unless migrated to an alternative service.
The text was updated successfully, but these errors were encountered: