~/talk

Consistent Design with Custom Lint Checks

Talkat droidcon SF 2019 · 2019-11-18..11-19· [android, developer-experience]
slides:none on file

Android teams extend Android Lint (over 300 built-in checks exist) with small, targeted detectors that enforce design rules: hard-coded hex colors in layouts get flagged and pointed to company color resources, elevation values must use company dimens, text sizes map to approved textAppearance styles, and a check will detect Android Toast usage and recommend an internal toast. Demos show a resource XML detector that scans layout files, overrides getApplicableAttributes and visitAttribute, checks values starting with “#”, reports warnings, and runs on CI and in Android Studio.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06What is lint
  3. 2:30Custom lint for design
  4. 8:32Demo overview
  5. 9:36Creating XML lint check
  6. 14:33Creating code lint check
  7. 17:25Advanced lint checks
  8. 18:49Resources and links
  9. 19:32Q&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.