recyclerview-ktx
Kotlin extensions for the AndroidX RecyclerView artifact.
Usage
RecyclerView KTX is available on Maven Central as the Maven coordinate io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:
settings.gradle.kts:
dependencyResolutionManagement {
// ...
repositories {
mavenCentral()
}
}Content copied to clipboard
Kotlin/Groovy
implementation("io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.2.0")Content copied to clipboard
TOML
gradle/libs.versions.toml:
[libaries]
androidxtra-recyclerview-ktx = "io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.2.0"Content copied to clipboard
build.gradle.kts:
implementation(libs.androidxtra.recyclerview.ktx)Content copied to clipboard
Snapshots
Alternatively, you can grab the latest built snapshot from Maven Central's snapshots repository:
settings.gradle.kts
dependencyResolutionManagement {
// ...
repositories {
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") {
// Optionally, you can specify that only snapshots are to be used
mavenContent {
snapshotsOnly()
}
}
}
}Content copied to clipboard
Kotlin
build.gradle.kts:
implementation("io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.3.0-SNAPSHOT")Content copied to clipboard
TOML
gradle/libs.versions.toml:
[libaries]
androidxtra-recyclerview-ktx = "io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.3.0-SNAPSHOT"Content copied to clipboard
build.gradle.kts:
implementation(libs.androidxtra.recyclerview.ktx)Content copied to clipboard
Available extensions/methods
Currently, the following extension functions are available:
Kotlin Properties
The following extension properties have been added:
Top-level methods
callback(new in version 0.2.0)itemCallback(new in version 0.2.0)
Packages
Link copied to clipboard
Top-level Kotlin extensions/utils for AndroidX RecyclerView.
Link copied to clipboard