~/talk

Compose for existing apps

Talkat droidcon EMEA 2020 · 2020-10-08..10-09· [android]
links:none on file
slides:none on file

Jetpack Compose is in alpha and you can incrementally add it to apps using ComposeView to host Compose inside XML, AndroidView or AndroidViewBinding to embed existing Views (maps, WebView, Lottie), and lifecycle observers plus lifecycleOwner ambient to keep View lifecycles correct. viewModel() and observeAsState bridge existing architecture and LiveData; savedInstanceState + Saver preserve UI state. Testing uses createComposeRule with Espresso interop. Navigation via navHost exists only in snapshots and is work in progress. Samples: Crane, JetNews, TD.

AI-written summary · about

  1. 0:00Introduction to Compose
  2. 2:15Migration strategies for Compose
  3. 5:07Adding Compose to Android Views
  4. 8:18Embedding Views in Compose
  5. 11:04Architecture with ViewModel
  6. 14:13Testing Compose and Views
  7. 15:39Navigation in Compose
  8. 17:32Using app resources in Compose
  9. 26:21Theming and styling in Compose
  10. 33:45Edge-to-edge UI with Compose
  11. 37:16Image loading in Compose
  12. 38:48Q&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.