~/talk

Best Practice for Text on Android and Its Internals

TalkinJapaneseat DroidKaigi 2019 · 2019-02-07..02-08· [android, web-platform]
links:none on file
slides:none on file

Shows how to speed up Android text rendering by identifying TextView hotspots with systrace and by turning off hyphenation to cut layout cost roughly in half. Describes moving expensive TextView measure/layout off the UI thread using PrecomputedText(Compat) and the getTextFuture / setTextFuture helpers, and explains caching strategy (LRU sizes) while warning about a known framework crash and a single large lock contention on older Android versions.

AI-written summary · about

  1. 0:00Introduction
  2. 3:04Text rendering slowness
  3. 9:54TextView layout internals
  4. 17:13Text layout caching
  5. 21:50Precompute layout with threads
  6. 26:15Prefetch and background layout
  7. 33:07Android 9/10 font features
  8. 37:11Font collection and variable fonts
  9. 38:58Locale-aware font selection
  10. 39:51System serif font install
  11. 40:35Parallel text layout Android 10
  12. 41:17CJK justification support
  13. 42:02Tall script line spacing
  14. 43:04Q&A
~/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.