Carousel Recyclerview
Create carousel effect in recyclerview with the CarouselRecyclerview in a simple way.
Including in your project
Gradle
Add below codes to your root build.gradle
file (not your module build.gradle file).
allprojects {
repositories {
mavenCentral()
}
}
And add a dependency code to your module's build.gradle
file.
dependencies {
implementation 'com.github.sparrow007:carouselrecyclerview:1.2.1'
}
Usage
Basic Example for Kotlin
Here is a basic example of implementing carousel recyclerview in koltin files (activity or fragment) with attribute.
val carouselRecyclerview = findViewById<CarouselRecyclerview>(R.id.recycler)
carouselRecyclerview.adapter = adapter
Basic Example for XML
Here is a basic example of implementing carousel recyclerview in layout xml.
"><com.jackandphantom.carouselrecyclerview.CarouselRecyclerview android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/recycler"/>