~/talk

Effective Android Data Binding

Talkat Android Summit 2017 · 2017-08-24..08-25· [android]
links:none on file
slides:none on file

Enables data binding in build.gradle, uses DataBindingUtil.setContentView to get generated binding classes, and binds ViewModel properties via BaseObservable or ObservableInt so views update without manual findViewById. Covers two-way binding for form fields, binding adapters to plug in Glide/Picasso and custom attributes (including overriding android:visibility), and using LiveData + ViewModel to survive rotation. Examples: counter, RecyclerView adapter (must call executeBindings), and a login demo that simulates a 7s async login and preserves state. Conversions and error reporting have caveats.

AI-written summary · about

  1. 0:00Start
  2. 14:27Syntax
  3. 16:11re Null Safe
  4. 20:22background threads
~/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.