~/talk

Handle gestures and touch events for CustomView

Talkat Android Makers 2020 · 2020-04-20..04-21· [android]
slides:none on file

A concrete how‑to that builds a working sliding panel with custom shape with canvas and shape morphing tied to drag distance, explains exact touch lifecycle decisions (dispatch, onInterceptTouchEvent and onTouchEvent), shows using view configurations to pick touch slop and fling thresholds, and uses velocityTracker and ViewDragHelper for fling math and smooth animations. The demo updates height and redraws during action_move, cancels child touches when intercepting, and finishes state changes on action_up.

AI-written summary · about

  1. 0:00Intro
  2. 0:19How Android Handles Touch Events?
  3. 1:51LifeCycle Methods of Touch event
  4. 4:43Lifecycle of touch events
  5. 11:24View Configurations
  6. 12:52Example: Sliding Panel
  7. 19:41Multi Touch in Touch System
  8. 21:50Example: Build a drag Multi-touch
  9. 23:10Velocity Tracker
  10. 24:57Example: Add fling to drag gesture
  11. 25:51Default Gestures in Framework
  12. 28:06Things to take care of
  13. 32:18ACTION MOVE
~/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.