BandPredicate
public
abstract
class
BandPredicate
extends Object
java.lang.Object | |
↳ | androidx.recyclerview.selection.BandPredicate |
Provides a means of controlling when and where band selection can be initiated.
Two default implementations are provided: BandPredicate.EmptyArea
, and BandPredicate.NonDraggableArea
.
Summary
Nested classes | |
---|---|
class |
BandPredicate.EmptyArea
A BandPredicate that allows initiation of band selection only in areas of RecyclerView
that map to |
class |
BandPredicate.NonDraggableArea
A BandPredicate that allows initiation of band selection in any area that is not
draggable as determined by consulting
|
Public constructors | |
---|---|
BandPredicate()
|
Public methods | |
---|---|
abstract
boolean
|
canInitiate(MotionEvent e)
|
Inherited methods | |
---|---|
Public constructors
BandPredicate
public BandPredicate ()
Public methods
canInitiate
public abstract boolean canInitiate (MotionEvent e)
Parameters | |
---|---|
e |
MotionEvent |
Returns | |
---|---|
boolean |
true if band selection can be initiated in response to the MotionEvent .
|
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-30 UTC.