~/talk

Best practices for themes and styles

Talkat Android Dev Summit 2018 · 2018-11-07..11-08· [android, design-collaboration]
slides:none on file

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

  1. 0:00Intro
  2. 0:31Material Design
  3. 6:03Theme Attributes
  4. 12:07Themes and Styles
  5. 16:20Themes and Attributes
~/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.