~/talk

Best practices for using text in Android

Talkat Google I/O 2019 · 2019-05-07..05-09· [android]
speakerdeck:siyamed
links:none on file
slides:none on file

Android Q turns hyphenation off by default (hyphenation previously drove ~70% of TextView work) and adds tools to push text work off the UI thread: use PrecomputedText.getTextFuture / AppCompatTextView.setTextFuture with RecyclerView prefetch to move ~90% of text layout to background. Fonts: build multi-font fallbacks with Typeface.CustomFallbackBuilder up to 64 families, match system fonts with FontMatcher and list installed files with SystemFonts enumeration . For EditText prefer TextInputLayout, use IME flags like no personalized learning and force ASCII, and override focused rect to keep validation errors visible.

AI-written summary · about

  1. 0:00Intro
  2. 1:08Performance
  3. 7:31Text styling
  4. 12:24Phone support
  5. 17:59System fonts
  6. 24:23Edit text
  7. 34:08Summary
~/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.