Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mindinventory/autoscrollcircularpagerview
- Owner: Mindinventory
- License: mit
- Created: 2020-12-19T13:36:06.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-24T13:20:15.000Z (over 3 years ago)
- Last Synced: 2024-07-30T16:53:49.411Z (6 months ago)
- Topics: android, android-library, autoscroll, autoscrollrecyclerview, autoscrollviewpager, autoscrolpager, circular, circularviewpager, kotlin, recyclerview, viewpager
- Language: Kotlin
- Homepage: https://www.mindinventory.com/android-application-development.php
- Size: 824 KB
- Stars: 17
- Watchers: 10
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.