~/talk

A Skeptics Guide to Programmatic Views on Android

Talkat AndroidTO 2018 · on Tuesday, 2018-11-06· [android]
slides:none on file

Argues for low-level Android UI using concrete APIs: uses Canvas with Paint and Path to draw stateful, animatable shapes instead of XML drawables; implements custom measurement via overriding onMeasure/onLayout to build a fully programmatic vertical list (example: a lolcat row with 60dp image, variable text, spacing) that reduces nesting and improves performance; creates a slider using MotionEvent handled by a state machine (initial → waiting → active) to capture 1–10 values. All examples are implemented and shown working.

AI-written summary · about

  1. 0:00Intro
  2. 2:43An Argument for Programmatic Uls
  3. 4:05Declarative Uls in Android
  4. 5:11Overlooked Alternatives
  5. 5:47The Android Layout System
  6. 6:11Measurement Phase
  7. 6:54MeasureSpecs
  8. 7:57Density Agnostic Measurements
  9. 8:50Programmatic Unit Conversion
  10. 9:21Programatic Conversion: Alternative
  11. 9:46Layout Phase!
  12. 10:51Layout Method: Alternative
  13. 11:20Example!
  14. 12:36VerticalLayout
  15. 14:34LolCatView
  16. 18:57Using Canvas
  17. 19:32Paths & Canvas
  18. 20:36Xml Approach
  19. 21:43Canvas Approach
  20. 23:49Motion Event
  21. 25:18on Touch Event
~/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.