~/talk

Incorporating Material Theming into Custom Views

Talkat droidCon Berlin 2019 · 2019-07-01..07-03· [android, component-design]
slides:none on file

Custom ColorPickerView is refactored to follow Material Theming by replacing hard-coded draws and widgets with MDC-Android primitives, using MaterialButton and text appearances, exposing a styleable with attributes for shape, tint and elevation, and backing backgrounds with MaterialShapeDrawable and a shared ShapeAppearanceModel for item diamonds. Ripple feedback uses RippleUtils and a ColorStateList; elevation uses ElevationOverlayProvider so dark mode brightens surfaces. Result: the component matches themed widgets, supports runtime theme changes and preserves selectable item state.

AI-written summary · about

  1. 0:00Introduction
  2. 3:38Material theming recap
  3. 7:28Fixing the OK button
  4. 9:56Styling text views
  5. 12:30Background theming
  6. 16:24Shape theming with styleables
  7. 17:49Text color on surfaces
  8. 20:21Theming color items
  9. 24:40Adding touch feedback
  10. 28:32Dark theme support
  11. 31:41Final considerations
  12. 32:46Conclusion and Q&A
~/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.