Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fondesa/recycler-view-divider
A library which configures a divider for a RecyclerView.
https://github.com/fondesa/recycler-view-divider
android androidx divider divideritemdecoration gridlayoutmanager itemdecoration linearlayoutmanager list recyclerview rtl staggered staggeredgrid staggeredgridlayoutmanager
Last synced: 9 days ago
JSON representation
A library which configures a divider for a RecyclerView.
- Host: GitHub
- URL: https://github.com/fondesa/recycler-view-divider
- Owner: fondesa
- License: apache-2.0
- Created: 2016-04-12T19:18:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-31T20:11:09.000Z (15 days ago)
- Last Synced: 2024-10-31T21:19:38.828Z (15 days ago)
- Topics: android, androidx, divider, divideritemdecoration, gridlayoutmanager, itemdecoration, linearlayoutmanager, list, recyclerview, rtl, staggered, staggeredgrid, staggeredgridlayoutmanager
- Language: Kotlin
- Homepage:
- Size: 1.6 MB
- Stars: 507
- Watchers: 8
- Forks: 45
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-list - fondesa/recycler-view-divider - A library which configures a divider for a RecyclerView. (Kotlin)
README
RecyclerViewDivider
===============
[![Build Status](https://github.com/fondesa/recycler-view-divider/workflows/GitHub%20CI%20Build/badge.svg)](https://github.com/fondesa/recycler-view-divider/actions)
[![RecyclerViewDivider](https://www.appbrain.com/stats/libraries/shield/recyclerviewdivider.svg)](https://www.appbrain.com/stats/libraries/details/recyclerviewdivider/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:
```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](https://github.com/fondesa/recycler-view-divider/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](https://github.com/fondesa/recycler-view-divider/releases) or grab it from ```mavenCentral()```.
### Gradle ###
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.fondesa/recycler-view-divider/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.fondesa/recycler-view-divider)
```gradle
dependencies {
implementation 'com.github.fondesa:recycler-view-divider:x.x.x'
}
```