Compose for existing apps
summary
Jetpack Compose is in alpha (alpha05) and the team publishes eight samples showing mix‑and‑match migration strategies: add ComposeView into fragments or use androidView to embed Maps/WebView, with a rememberMapView helper that wires view lifecycle via a LifecycleEventObserver. ViewModel helpers, LiveData/Flow observe-extensions, and Saver/savedInstanceState work for state. Tests use createComposeRule and createAndroidComposeRule; Espresso and Compose synchronize. Navigation is snapshot/WIP; MDC theme adapter and accompanist image libraries bridge UI and resources.
AI-written summary · about
chapters (12)
- 0:00Introduction to Compose
- 3:09Migration strategies for Compose
- 5:38Hosting Compose in Views
- 9:09Embedding Views in Compose
- 13:28Accessing resources in Compose
- 16:56Escape hatches with Ambients
- 21:07Architecture with Compose
- 24:39Saved instance state in Compose
- 26:47Testing Compose code
- 29:14Navigation in Compose
- 31:43Theming and styles in Compose
- 37:01Q&A
