BandPredicate.EmptyArea


class BandPredicate.EmptyArea : BandPredicate


A BandPredicate that allows initiation of band selection only in areas of RecyclerView that map to NO_POSITION. In most cases, this will be the empty areas between views.

Use this implementation to permit band selection only in empty areas surrounding view items. But be advised that if there is no empy area around view items, band selection cannot be initiated.

Summary

Public constructors

EmptyArea(recyclerView: RecyclerView)

Public functions

Boolean

Public constructors

EmptyArea

Added in 1.0.0
EmptyArea(recyclerView: RecyclerView)
Parameters
recyclerView: RecyclerView

the owner RecyclerView

Public functions

canInitiate

Added in 1.2.0-alpha02
fun canInitiate(e: MotionEvent): Boolean
Returns
Boolean

true if band selection can be initiated in response to the MotionEvent.