Themes, styles & more: from zero to hero
summary
Explains how Android styling actually works: the build tool aapt2 (default now) compiles attrs, themes and styles; themes can be applied per-activity or per-view with theme overlays (API21 behavior backported by appcompat to ~API14); a text appearance span only applies character-level attributes (color size typeface) and setTextAppearance is API23 or use compat; practical examples include extracting a reusable list-item style, tinting icons from theme attrs, and implementing night mode via values-night plus AppCompatDelegate.setLocalNightMode — reduces duplication by using base-theme files.
AI-written summary · about
chapters (6)
- 0:00Start
- 18:20Android is a universe of styles
- 20:43TextAppearance
- 33:44Theme overlays
- 35:32Compatibility
- 37:12Theming & tinting
related talks
49mThemes, styles & more: from zero to hero
23mBest practices for themes and styles
33mUnderstanding Android Themes
46mDeveloping Themes with Style
42mStyles, Themes, Material Theming, Oh My!
43mCustomizing Theme and Style for Material Design
45mTheme On
21mHow We Built the Android Design System for The New York Times
