An open API service indexing awesome lists of open source software.

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..

Awesome Lists containing this project

README

        

# Dots indicator without viewpager

![](https://jitpack.io/v/mazenrashed/DotsIndicatorWithoutViewpager.svg)

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

![](https://media.giphy.com/media/dUs6RgepqKTR0UrEkl/giphy.gif)
### 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.