BandPredicate.EmptyArea
public
static
final
class
BandPredicate.EmptyArea
extends BandPredicate
A BandPredicate that allows initiation of band selection only in areas of RecyclerView
that map to RecyclerView.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
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 EmptyArea (RecyclerView recyclerView)
Parameters |
recyclerView |
RecyclerView : the owner RecyclerView
|
Public methods
canInitiate
public boolean canInitiate (MotionEvent e)
Returns |
boolean |
true if band selection can be initiated in response to the MotionEvent .
|