recycler-view-divider

A library that can configure a divider for a RecyclerView.

License

License

Categories

Categories

IDE Development Tools
GroupId

GroupId

com.github.fondesa
ArtifactId

ArtifactId

recycler-view-divider
Last Version

Last Version

3.5.0
Release Date

Release Date

Type

Type

aar
Description

Description

recycler-view-divider
A library that can configure a divider for a RecyclerView.
Project URL

Project URL

https://github.com/fondesa/recycler-view-divider
Source Code Management

Source Code Management

https://github.com/fondesa/recycler-view-divider

Download recycler-view-divider

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.fondesa/recycler-view-divider/ -->
<dependency>
    <groupId>com.github.fondesa</groupId>
    <artifactId>recycler-view-divider</artifactId>
    <version>3.5.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.fondesa/recycler-view-divider/
implementation 'com.github.fondesa:recycler-view-divider:3.5.0'
// https://jarcasting.com/artifacts/com.github.fondesa/recycler-view-divider/
implementation ("com.github.fondesa:recycler-view-divider:3.5.0")
'com.github.fondesa:recycler-view-divider:aar:3.5.0'
<dependency org="com.github.fondesa" name="recycler-view-divider" rev="3.5.0">
  <artifact name="recycler-view-divider" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.fondesa', module='recycler-view-divider', version='3.5.0')
)
libraryDependencies += "com.github.fondesa" % "recycler-view-divider" % "3.5.0"
[com.github.fondesa/recycler-view-divider "3.5.0"]

Dependencies

compile (2)

Group / Artifact Type Version
androidx.recyclerview » recyclerview jar 1.1.0
org.jetbrains.kotlin : kotlin-stdlib jar 1.4.32

Project Modules

There are no modules declared in this project.

RecyclerViewDivider

Build Status RecyclerViewDivider

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

It supports:

  • LinearLayoutManager
  • GridLayoutManager
  • StaggeredGridLayoutManager

Usage

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

// Default configuration.
recyclerView.addDivider()

OR

// 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

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

Versions

Version
3.5.0
3.4.0
3.3.0
3.2.2
3.2.1
3.2.0
3.1.0
3.0.2
3.0.1
3.0.0
2.0.1
2.0.0
1.4.1
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.1
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0