~/talk

Themes, styles & more: from zero to hero

Talkat Android Makers 2018 · on Monday, 2018-04-23· [android]

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

  1. 0:00Start
  2. 18:20Android is a universe of styles
  3. 20:43TextAppearance
  4. 33:44Theme overlays
  5. 35:32Compatibility
  6. 37:12Theming & tinting
~/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.