RecyclerViewDivider

Additional

Language
Kotlin
Version
2.0.1 (Apr 3, 2018)
Created
Apr 12, 2016
Updated
Apr 3, 2018
Owner
Giorgio Antonioli (Fondesa)
Contributor
Giorgio Antonioli (Fondesa)
1
Activity
Badge
Generate
Download
Source code
APK file

Announcement

RecyclerViewDivider

A RecyclerView's divider that can be customized with simple properties or advanced ones.

It supports completely LinearLayoutManager and GridLayoutManager.

Usage

A basic version of the divider can be attached to a RecyclerView through this line:

RecyclerViewDivider.with(context).build().addTo(recyclerView);

Each divider can be customized with various properties. These properties can have a common value for every divider or a specific value related to a divider instance.

For further information, check the wiki.

Compatibility

Android SDK: RecyclerViewDivider requires a minimum API level of 14 (the same of RecyclerView).

Integration

You can download a jar from GitHub's releases page or grab it from jcenter() or mavenCentral().

Gradle

dependencies {
    compile 'com.github.fondesa:recycler-view-divider:2.0.1'
}

Maven

<dependency>
  <groupId>com.github.fondesa</groupId>
  <artifactId>recycler-view-divider</artifactId>
  <version>2.0.1</version>
  <type>pom</type>
</dependency>