~/talk

Advanced Android Touches

Talkat Chicago Roboto 2017 · 2017-04-20..04-21· [android]
links:none on file
slides:none on file

Traces how Android routes MotionEvent objects through dispatchTouchEvent and onInterceptTouchEvent down to onTouchEvent, shows why getRawX/Y and action masks matter, and recommends GestureDetector and ViewConfiguration constants instead of reimplementing basics. Presents a working GitHub demo with logs and a real build: a custom translucent bottom bar over a RecyclerView that forwards scroll gestures (a hacky but functional dispatch) so clicks pass through while scrolls are captured.

AI-written summary · about

  1. 0:00Start
  2. 1:19How do those Android APIs really work?
  3. 2:40Motivations for you
  4. 3:03What happens when a user touches a screen?
  5. 4:12View on a screen
  6. 4:49boolean onTouchEvent()
  7. 5:56Custom 'click' listener
  8. 8:37Swipe down to dismiss
  9. 9:47Why have we been extending the View class?
  10. 10:13boolean dispatchTouchEvent()
  11. 10:34boolean onInterceptTouchEvent()
  12. 11:48How MotionEvents are propagated
  13. 15:19GestureDetector
  14. 15:36ViewConfiguration.java
  15. 16:02Multitouch
  16. 16:36In Summary
  17. 17:00Other great talks
~/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.