GitPedia

Recycler view divider

A library which configures a divider for a RecyclerView.

From fondesa·Updated May 26, 2026·View on GitHub·

A RecyclerView's divider which can be customized with simple properties or advanced ones. The project is written primarily in Kotlin, distributed under the Apache License 2.0 license, first published in 2016. Key topics include: android, androidx, divider, divideritemdecoration, gridlayoutmanager.

Latest release: 3.6.0RecyclerViewDivider 3.6.0
November 12, 2022View Changelog →

RecyclerViewDivider

Build Status
RecyclerViewDivider

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

<img src="https://raw.githubusercontent.com/fondesa/recycler-view-divider/master/art/screenshot_linear.png" height="500"> <img src="https://raw.githubusercontent.com/fondesa/recycler-view-divider/master/art/screenshot_grid.png" height="500"> <img src="https://raw.githubusercontent.com/fondesa/recycler-view-divider/master/art/screenshot_staggered.png" height="500">

It supports:

  • LinearLayoutManager
  • GridLayoutManager
  • StaggeredGridLayoutManager

Usage

A basic version of the divider can be attached to a RecyclerView in these ways:

kotlin
// Default configuration. recyclerView.addDivider()

OR

kotlin
// Custom configuration. context.dividerBuilder() // [...] .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).

AndroidX: this library requires AndroidX. To use it in a project without AndroidX, refer to the version 2.x

Integration

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

Gradle

Maven Central

gradle
dependencies { implementation 'com.github.fondesa:recycler-view-divider:x.x.x' }

Contributors

Showing top 2 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from fondesa/recycler-view-divider via the GitHub API.Last fetched: 6/19/2026