Best practices for using text in Android
summary
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
chapters (7)
- 0:00Intro
- 1:08Performance
- 7:31Text styling
- 12:24Phone support
- 17:59System fonts
- 24:23Edit text
- 34:08Summary
related talks
43mBest Practice for Text on Android and Its Internals
37mAndroid Text, The Good The Bad and The ugly
35mBest practices for text on Android
15mUse Android text like a pro
41mAndroid Textual Layout
40mWhat's New (?) in Android Text Over the Past Few Years
46mTypesetting: designing and building beautiful text layouts
38mFonts, Emoji and Text Using Support Libraries
