vncoreui / com.venuenext.vncoreui.ui / RecyclerViewFling

RecyclerViewFling

class RecyclerViewFling : OnFlingListener

RecyclerViewFling

Subclass of RecyclerView.OnFlingListener(). Allows us to detect fling event "large scroll".

This was needed to fix an issue where the fling event would not stop it's scroll even though it visually looks stopped. There was an issue reported back on version 26: https://issuetracker.google.com/issues/66996774?pli=1

Created on 6/25/19. Copyright © 2019 VenueNext Inc. All rights reserved.

Constructors

<init>

RecyclerViewFling

RecyclerViewFling(recycler: RecyclerView)

Functions

onFling

fun onFling(velocityX: Int, velocityY: Int): Boolean