Best practices for themes and styles
summary
Advocates a concrete pattern: use theme attributes (prefer library attrs from AppCompat/MaterialComponents) so a single semantic change (colorAccent, text appearance) ripples across the app; apply themes at the View level via android:theme on a View or ContextThemeWrapper (API 21, back‑ported) to avoid duplicate styles; tint drawables and prefer vectors, using DrawableCompat and AppCompat.Resources plus color state lists with separated alpha (Marshmallow behavior) to retheme the forked DevSummit app with only a few semantic color changes.
AI-written summary · about
chapters (5)
related talks
46mDeveloping Themes with Style
49mThemes, styles & more: from zero to hero
49mThemes, styles & more: from zero to hero
43mCustomizing Theme and Style for Material Design
33mUnderstanding Android Themes
42mStyles, Themes, Material Theming, Oh My!
45m[Re]Coloring Android Apps.
33mIncorporating Material Theming into Custom Views
