public final class

BandPredicate.EmptyArea

extends BandPredicate

 java.lang.Object

androidx.recyclerview.selection.BandPredicate

↳androidx.recyclerview.selection.BandPredicate.EmptyArea

Overview

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

Constructors
publicEmptyArea(RecyclerView recyclerView)

Methods
public abstract booleancanInitiate(MotionEvent e)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public EmptyArea(RecyclerView recyclerView)

Parameters:

recyclerView: the owner RecyclerView

Methods

public abstract boolean canInitiate(MotionEvent e)

Returns:

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