https://github.com/mazenrashed/DotsIndicatorWithoutViewpager
Paging dots indicator to use it without viewpager, you can use it with swipe gestures, buttons, etc..
https://github.com/mazenrashed/DotsIndicatorWithoutViewpager
Last synced: 20 days ago
JSON representation
Paging dots indicator to use it without viewpager, you can use it with swipe gestures, buttons, etc..
- Host: GitHub
- URL: https://github.com/mazenrashed/DotsIndicatorWithoutViewpager
- Owner: mazenrashed
- Created: 2019-10-03T11:51:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-17T13:16:17.000Z (over 5 years ago)
- Last Synced: 2025-01-18T11:09:18.521Z (3 months ago)
- Language: Kotlin
- Homepage:
- Size: 133 KB
- Stars: 52
- Watchers: 3
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-jordan - Dots Indicator Without Viewpager - Dots indicator to use it without viewpager, use can use it with swipe gestures, buttons and more. (Android)
README
# Dots indicator without viewpager

Dots indicator to use it without viewpager, You can use it with swipe gestures, buttons, etc..

### Add the JitPack repository to your build file
```groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
### Add dependency
```groovy
dependencies {
implementation 'com.github.mazenrashed:DotsIndicatorWithoutViewpager:${LAST_VERSION}'
}
```
# Usage
## Layout
Simple usage
```xml```
More options
```xml```
## Set selection
```kotlin
dotsIndicator.setDotSelection(position)
```
## Select listener
```kotlin
dotsIndicator.onSelectListener = {
Toast.makeText(this, "page $it selected", Toast.LENGTH_SHORT).show()
}
```
## Set or change dots count
```kotlin
dotsIndicator.initDots(dotsCount)
```## Contributing
We welcome contributions !
* ⇄ Pull requests and ★ Stars are always welcome.