~/talk

Drag and Drop in Compose!

Talkat droidcon New York 2025 · 2025-06-25..06-26· [android]
links:none on file
slides:none on file

Two years of work distill into a practical migration: built a lazy-column rearrange for Compose that shipped on millions of Trello users, first with a pointer input method (pointerInput + graphicsLayer + visibleItemsInfo) that handled long-press drag, rearrange-by-midpoint and visual tweaks but clipped when dragging outside parent and broke for offscreen tall items. Reworked to use Compose 1.6 drag and drop source / target APIs with a simplified drag drop state, fixed ghost duplication and global coords, now working but limited by targets needing composition at drag start and tight ghost-canvas sizing.

AI-written summary · about

  1. 0:00Drag and drop in Compose
  2. 1:04What drag and drop is
  3. 2:05Why Compose for drag and drop
  4. 3:32Pointer input method
  5. 6:59Pointer input merits and pitfalls
  6. 8:44Compose 1.6 APIs approach
  7. 11:33New APIs improvements
  8. 12:15Forward-thinking improvements
  9. 14:00Closing and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.