BandPredicate.NonDraggableArea
public
static
final
class
BandPredicate.NonDraggableArea
extends BandPredicate
A BandPredicate that allows initiation of band selection in any area that is not
draggable as determined by consulting
ItemDetailsLookup.ItemDetails.inDragRegion(MotionEvent)
. By default empty
areas (those with a position that maps to RecyclerView.NO_POSITION
are considered non-draggable.
Use this implementation in order to permit band selection in
otherwise empty areas of a View. This is useful especially in
list layouts where there is no empty space surrounding the list items,
and individual list items may contain extra white space (like
in a list of varying length words).
Summary
Inherited methods |
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public constructors
public NonDraggableArea (RecyclerView recyclerView,
ItemDetailsLookup<?> detailsLookup)
Creates a new instance.
Parameters |
recyclerView |
RecyclerView : the owner RecyclerView |
detailsLookup |
ItemDetailsLookup : provides access to item details.
|
Public methods
canInitiate
public boolean canInitiate (MotionEvent e)
Returns |
boolean |
true if band selection can be initiated in response to the MotionEvent .
|