DpadSelectionSnapHelper

A SnapHelper that scrolls Views to their alignment configuration and performs selections automatically. Use this only if you need to support touch event handling, as DpadRecyclerView by default does not handle selection on touch events.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun attachToRecyclerView(recyclerView: RecyclerView?)
Link copied to clipboard
open override fun calculateDistanceToFinalSnap(layoutManager: RecyclerView.LayoutManager, targetView: View): IntArray
Link copied to clipboard
Link copied to clipboard
open override fun findSnapView(layoutManager: RecyclerView.LayoutManager): View?
Link copied to clipboard
open override fun findTargetSnapPosition(p0: RecyclerView.LayoutManager, p1: Int, p2: Int): Int
Link copied to clipboard
open override fun onFling(p0: Int, p1: Int): Boolean