~/talk

DRAGGIN' AND DROPPIN'

Talkat droidcon NYC 2016 · 2016-09-29..09-30· [android]
links:none on file
slides:none on file

Android drag-and-drop exists since API 11 but Android 7.0 enables cross-window and cross-app drops; example app uses MediaStore + RecyclerView showing video URIs, long-press calls startDrag/startDragAndDrop with a ClipData URI and a custom DragShadowBuilder that draws a thumb, then drops into a VideoView or ImageView (Picasso used for images). Cross-app needs flags like DRAG_FLAG_GLOBAL, URI read and persistable permissions; localState trick aims to block external drags but fails across windows, and Android 7 changes event semantics (inclusive → exclusive) causing regressions.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:18What is drag and drop
  3. 3:51Multi-window drag and drop
  4. 9:08Setting up drop targets
  5. 13:02Initiating drag and drop
  6. 15:31Handling drag events
  7. 22:18Cross-app drag and drop
  8. 24:24Global drag flags
  9. 25:48Custom drag shadow builder
  10. 27:10Local state workaround
  11. 31:07Drop target visibility
  12. 32:12Dedicated drop actions
  13. 34:00Drag event exclusivity
  14. 35:48Android version behavior
  15. 36:52Accessibility and design
  16. 38:17Encouraging ecosystem support
~/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.