Theme On
summary
Explains exactly what themes do and how to use them: themes hold attribute keys that widgets and textAppearance spans resolve at inflate time, styles vs textAppearance vs theme attributes, and how contextThemeWrapper and setTheme apply localized overlays. Describes a concrete fix: build a mapper that flattens backend rich-text into Spannable with text appearance spans, expose named style attributes in themes, and inject different themed contexts via Dagger 2 so different activities map names to different TextAppearance values — small code change, rolled out company-wide.
AI-written summary · about
chapters (6)
- 0:00Start
- 17:07Theme Attribute
- 18:29Theme Inheritance
- 21:11Applying Styles & Themes
- 25:06Custom View
- 31:12Case Study: DOM - CharSequence
related talks
46mDeveloping Themes with Style
49mThemes, styles & more: from zero to hero
49mThemes, styles & more: from zero to hero
42mStyles, Themes, Material Theming, Oh My!
39mStyles, Themes, Material Theming, Oh My!
23mBest practices for themes and styles
33mUnderstanding Android Themes
23mThe lesser-known world of Spans
