~/talk

Android Text, The Good The Bad and The ugly

Talkat droidCon NYC 2018 · 2018-08-27..08-28· [android, web-platform]
links:none on file
slides:none on file

Covers concrete Android Text fixes: turn off hyphenation (default causes ~2.5× slower layout on many devices), use precomputed text + RecyclerView prefetch to move measurement off the UI thread and gain up to 10× faster text measurement (cost ~20 KB per 500 chars), avoid setText churn by prebuilding Spannables and setting a custom SpannableFactory to skip copies, avoid runtime Linkify in bind, and use BreakIterator when implementing length filters to handle multi-codepoint emoji correctly.

AI-written summary · about

  1. 0:00Introduction to Android text
  2. 1:56Disabling hyphenation for performance
  3. 4:29Precomputed text with RecyclerView
  4. 7:21How native text measurement works
  5. 13:06Inflation and text view count
  6. 14:56Performance pitfalls with setText
  7. 18:29Efficient span checks and usage
  8. 20:15Optimizing spannable strings
  9. 22:24Autolink performance issues
  10. 23:29Editable text and performance
  11. 26:01Input method and text changes
  12. 28:51Input filter and length limits
  13. 35:56Resources and Q&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.