Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

BandPredicate.EmptyArea

public static final class BandPredicate.EmptyArea
extends BandPredicate

java.lang.Object
   ↳ androidx.recyclerview.selection.BandPredicate
     ↳ androidx.recyclerview.selection.BandPredicate.EmptyArea


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

Public constructors

EmptyArea(RecyclerView recyclerView)

Public methods

boolean canInitiate(MotionEvent e)

Inherited methods

Public constructors

EmptyArea

public EmptyArea (RecyclerView recyclerView)

Parameters
recyclerView RecyclerView: the owner RecyclerView

Public methods

canInitiate

public boolean canInitiate (MotionEvent e)

Parameters
e MotionEvent

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