Skip to content

Instantly share code, notes, and snippets.

Luca Nicoletti lnicolet

Block or report user

Report or block lnicolet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lnicolet / EndlessRecyclerViewScrollListener.kt
Created Oct 17, 2018
EndlessRecyclerViewScrollListener file for kotlin projects
View EndlessRecyclerViewScrollListener.kt
* Created by Luca Nicoletti
* © 17/10/2018
* Copied from:; added some little edits for Kotlin
abstract class EndlessRecyclerViewScrollListener(private var visibleThreshold: Int = 5): RecyclerView.OnScrollListener() {
private var currentPage = 0
private var previousTotalItemCount = 0
private var loading = true
You can’t perform that action at this time.