~/talk

Pushing the boundaries of the layout system & typography

speakerdeck:thorbenprimke
name:Lin Wang
links:none on file
slides:none on file

Pinterest creates a new unit called Boints (BT) that maps to different DP values per device class to keep a 12-column grid with 13 gutters consistent across phones, tablets and web; layout XML gets custom BT attributes but Android only allows one inflater factory so a custom generic LayoutInflater with hooks is built to apply multiple view customizations and swap image view implementations for experiments; typography uses a span-based tracking/word-spacing approach for ICS+ and an autofit that shrinks at most two sizes; span letter‑spacing costs ~25 ms for small text while word‑spacing and autofit run ~1 ms.

AI-written summary · about

  1. 0:00Intro
  2. 6:12Layout system
  3. 12:20Custom attributes
  4. 19:54Custom text view
  5. 20:05Text sizing
  6. 21:28Textview
  7. 22:08Letter Spacing
  8. 22:48Span
  9. 23:22Scale Expand
  10. 23:40BreakIterator
  11. 24:28ScaleExpand
  12. 25:20ScaleSpacing
  13. 25:48ScaleSpacing Utility
  14. 27:28Internationalization
  15. 27:53Width
  16. 28:11Size
  17. 28:24Performance
  18. 29:18Multiple approaches
  19. 29:58Generic layout inflator
  20. 32:34Alignment
  21. 32:55Rhythm
  22. 33:30Questions
~/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.