TouchExpansionDelegate

Compound touch delegate that forward touch events to recyclable inner touch delegates.

Constructors

Link copied to clipboard
constructor(host: ComponentHost?)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun draw(canvas: Canvas, paint: Paint)
Link copied to clipboard
fun moveTouchExpansionIndexes(oldIndex: Int, newIndex: Int)

Called when the MountItem this Delegate is referred to is moved to another position to also update the indexes of the TouchExpansionDelegate.

Link copied to clipboard
open override fun onTouchEvent(event: MotionEvent): Boolean
Link copied to clipboard
fun registerTouchExpansion(index: Int, view: View, item: MountItem)

Registers an inner touch delegate for the given view with the specified expansion. It assumes the given view has its final bounds set.

Link copied to clipboard
Link copied to clipboard

Unregisters an inner touch delegate with the given index.