DragAndPress - Enables drag and press functionality on buttons.

DragAndPress
Enables drag and press functionality on buttons.

GIF_20250217_211133_430

Detects when the user taps, drags, and releases the thumb
and applies the corresponding state changes to the tapped components.

ㅤNote:ㅤ

When sliding your finger, it must be from outside the buttons
If you do it by pressing a button, the buttons will not be activated.
I haven't found a solution for that.

EnableDragAndPressOnArrangement

Enables drag and button press functionality within a specific HVArrangement.

  • arrangement: HVArrangement to enable drag and tap functionality.

aiaProject:
DragAndPress.aia (33.3 KB)

Extension:
joejsanz.joedevdragandpress.aix (7.0 KB)


minSdk: 21
maxSdk: 34
JDK: 11

Created with Fast. v2.3.0
fast-cli


Thanks.

2 Likes