RecyclerView KTX 0.1.0
·
39 commits
to main
since this release
Tag created on 20 Mar 2025, published on Maven Central on 21 Mar 2025
Links
This module adds Kotlin extensions and additional utilities for version 1.4.0 of the androidx.recyclerview:recyclerview
artifact.
Usage
0.1.0 is published on Maven Central as io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.1.0
.
androidxtra-recyclerview-ktx = "io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.1.0"
settings.gradle.kts
:
dependencyResolutionManagement {
// ...
repositories {
mavenCentral()
}
}
Kotlin/Groovy
implementation("io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.1.0")
TOML
gradle/libs.versions.toml
:
[libaries]
androidxtra-recyclerview-ktx = "io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.1.0"
build.gradle.kts
:
implementation(libs.androidxtra.recyclerview.ktx)
Notable changes
Warning
Note that this module is built with Kotlin 2.0.0+ and may require the K2 compiler.
- Initial release. See below for the added list of methods/functions:
Added extension functions
- Mutable property
RecyclerView.ViewHolder.canRecycle
- Mutable property
RecyclerView.hasFixedSize
- Mutable property
RecyclerView.Adapter<*>.hasStableIds
Experimental functions
Warning
These functions may change or have incompatible behaviour when upgrading versions. You have been
warned!
API dependencies
These are the dependencies marked with the api
configuration that the library uses:
Artifact | Version |
---|---|
androidx.annotation:annotation |
1.9.1 |
androidx.recyclerview:recyclerview |
1.4.0 |