BandPredicate


abstract class BandPredicate

BandPredicate.EmptyArea

A BandPredicate that allows initiation of band selection only in areas of RecyclerView that map to NO_POSITION.

BandPredicate.NonDraggableArea

A BandPredicate that allows initiation of band selection in any area that is not draggable as determined by consulting inDragRegion.


Provides a means of controlling when and where band selection can be initiated.

Two default implementations are provided: EmptyArea, and NonDraggableArea.

Summary

Nested types

A BandPredicate that allows initiation of band selection only in areas of RecyclerView that map to NO_POSITION.

A BandPredicate that allows initiation of band selection in any area that is not draggable as determined by consulting inDragRegion.

Public constructors

Public functions

abstract Boolean

Public constructors

BandPredicate

Added in 1.0.0
BandPredicate()

Public functions

canInitiate

Added in 1.0.0
abstract fun canInitiate(e: MotionEvent): Boolean
Returns
Boolean

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

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Oct 1, 2024

Android App Links are HTTP URLs that bring users directly to specific content in your Android app.

Updated Apr 30, 2024

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Dec 18, 2024