~/talk

Taming Android Studio Layout Editing

Talkat Droidcon Italy 2018 · 2018-04-19..04-20· [android, developer-experience]
slides:none on file

Android Studio’s Layout Editor plus ConstraintLayout actually change XML rather than just prettify it: attributes are kept alphabetically and unused attributes are removed when views change, the editor creates chains and aspect-ratio match_constraint layouts, and the issue panel gives actionable render fixes (extract string, missing Gradle libs). Design-time features include tools attributes removed at compile and Sample Data JSON and image directories that populate RecyclerViews so previews look real. Custom views use isInEditMode branches to avoid runtime service calls.

AI-written summary · about

  1. 0:00Start
  2. 3:05edit your xml attribute
  3. 3:49show you the hierarchy of your components
  4. 10:19create a new resource vectordrawable
  5. 10:54customize the icon
  6. 14:08create all the constraints
  7. 15:21navigate to the included layout by double clicking on the component tree
  8. 21:55replace the tint attribute in my item layout
  9. 23:29add images of your own
~/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.