ibrahimyilmaz / kiel

(Published to MavenCentral) Kotlin way of building RecyclerView Adapter 🧩. You do not have to write RecyclerView Adapters again and again and suffer from handling of different view types. Kiel will help you.
Apache License 2.0
370 stars 30 forks source link

[kiel]: Make `PagingDataAdapter` composable #27

Closed ibrahimyilmaz closed 4 years ago

ibrahimyilmaz commented 4 years ago

As an Android Developer, we would like to able to use Kiel with PagingDataAdapter. With this we may utilize the power of Paging 3.

https://developer.android.com/topic/libraries/architecture/paging/v3-overview https://developer.android.com/reference/kotlin/androidx/paging/PagingDataAdapter

syntax would be:

val adapter =pagingAdapter<Type>{
diffUtil{...}
register{...}
}

adapter.submitData(...)

In addition to this, it will be nice to have an example in the samples project.