~/talk

Creating a UI Toolkit From Scratch

Talkat Android Makers 2022 · 2022-04-25..04-26· [android, frontend-architecture]
slides:none on file

A small UI toolkit called apex toolkit is built from scratch for Android and runs on a demo that draws an image and two buttons and responds to clicks. Architecture uses an entity-component model so widgets are elements plus composable behaviors. Rendering renders every frame via Choreographer to an Android canvas through a partial Android renderer, which works but cheats on invalidation and allocates more than production needs. Source lives at /homegive/experiment/apex and making a production-grade toolkit takes years not months (15 years of platform work cited).

AI-written summary · about

  1. 0:00Intro
  2. 0:50UI Toolkits
  3. 8:49Live Coding
  4. 10:17Entity Component Framework
  5. 20:29UI Toolkit
  6. 21:42Apex
  7. 22:45Abstraction Layers
  8. 23:41Render API
  9. 24:29Canvas
  10. 25:07Drawing surfaces
  11. 26:05Activity
  12. 28:11Rendering Loop
  13. 29:28Back to Implementation
  14. 29:56Renderer
  15. 30:24Exercises
  16. 30:44Widgets
  17. 31:05Invalidation
  18. 32:28Minimize Allocation
  19. 33:14Crossplatform abstraction
  20. 33:53Key takeaway
  21. 34:11Questions
~/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.