BandPredicate.EmptyArea


public final class BandPredicate.EmptyArea extends 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

Public methods

boolean

Public constructors

EmptyArea

Added in 1.0.0
public EmptyArea(@NonNull RecyclerView recyclerView)
Parameters
@NonNull RecyclerView recyclerView

the owner RecyclerView

Public methods

canInitiate

Added in 1.2.0-alpha02
public boolean canInitiate(@NonNull MotionEvent e)
Returns
boolean

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