~/talk

Best practices for text on Android

Talkat Google I/O 2018 · 2018-05-08..05-10· [android]
slides:none on file

Overview of concrete Android text practices: Minikin does shaping, line breaking and a system LRU word-measure cache of 5,000 items; hyphenation costs about 2.5× more CPU and depends on locale so use setTextLocale/LocaleSpan. Use premeasured text (PrecomputedText.create) off‑UI to cut measure cost ~90%, prefer SpannableStringBuilder for >250 spans, avoid XML autolink in RecyclerView (precompute Linkify/LinkifyCompat), use SpannableFactory to avoid copies, and use async Smart Linkify and the built‑in Magnifier for selection.

AI-written summary · about

  1. 0:00Introduction
  2. 5:31Text styling
  3. 12:54Internationalized text
  4. 14:07Layout
  5. 19:33Measure
  6. 27:06Set Text
  7. 29:49AutoLink
~/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.