Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mindinventory/autoscrollcircularpagerview

AutoScrollCircularPagerView is a library to show a slider with features of the circular auto-scroll with configurable.
https://github.com/mindinventory/autoscrollcircularpagerview

android android-library autoscroll autoscrollrecyclerview autoscrollviewpager autoscrolpager circular circularviewpager kotlin recyclerview viewpager

Last synced: 3 months ago
JSON representation

AutoScrollCircularPagerView is a library to show a slider with features of the circular auto-scroll with configurable.

Awesome Lists containing this project

README

        

# AutoScrollCircularPagerView
[![](https://jitpack.io/v/Mindinventory/AutoScrollCircularPagerView.svg)](https://jitpack.io/#Mindinventory/AutoScrollCircularPagerView)

AutoScrollCircularPagerView is a library to show slider with features of circular auto scroll with configurable

![image](/media/auto-scroll-pager-view.gif)

### Key features

* Circular image slider
* Easy to customise auto scroll time interval
* Configurable dots position and colors

# Usage

### Dependencies

* Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

```groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```

* Step 2. Add the dependency

Add it in your app module build.gradle:

```groovy
dependencies {
...
implementation 'com.github.Mindinventory:AutoScrollCircularPagerView:0.0.2'
}
```

### Implementation

* Step 1. Add AutoScrollCircularPagerView in to your layout class:

```xml

```

* Step 2. Setup adapter and items for AutoScrollCircularPagerView in to your Activity or Fragment:

```kotlin
class MainActivity : AppCompatActivity() {
private val images = ArrayList().apply {
add(R.drawable.image1)
add(R.drawable.image2)
add(R.drawable.image3)
add(R.drawable.image4)
add(R.drawable.image5)
}
private val myAdapter by lazy { MyAdapter() }

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
autoScrollContainer.setAdapter(myAdapter)
autoScrollContainer.setItems(images)
}
}
```
---------------------------------------------------------------------
### Guideline for contributors
Contribution towards our repository is always welcome, we request contributors to create a pull request to the **develop** branch only.

### Guideline to report an issue/feature request
It would be great for us if the reporter can share the below things to understand the root cause of the issue.

* Library version
* Code snippet
* Logs if applicable
* Device specification like (Manufacturer, OS version, etc)
* Screenshot/video with steps to reproduce the issue

### Requirements

* minSdkVersion >= 23
* Androidx

# LICENSE!

AutoScrollCircularPagerView is [MIT-licensed](/LICENSE).

# Let us know!
We’d be really happy if you send us links to your projects where you use our component. Just send an email to [email protected] And do let us know if you have any questions or suggestion regarding our work.