ViewCompose capability tutorials
Choose the capability you need. Every tutorial is a standalone starting point: it lists all required Maven dependencies first, uses one self-contained Activity file, and can be compiled without completing another chapter.
| I want to… | Tutorial | Extra ViewCompose artifact |
|---|---|---|
| update UI from state | Use state and events | none |
| arrange content | Use layouts and modifiers | none |
| accept editable text | Use text input | none |
| show a scrolling collection | Use a lazy list | none |
| follow light, dark, and semantic colors | Use themes | none |
| move between screens | Use navigation | viewcompose-navigation-android |
| show a dialog | Use overlays | viewcompose-overlay-material3-android |
| embed a native View | Use AndroidView | none |
| show and hide content with motion | Use AnimatedVisibility | viewcompose-animation |
| handle taps and long presses | Use gestures | viewcompose-gesture |
| tune a large lazy list | Tune lazy-list performance | none |
| inspect renderer work | Read render diagnostics | none |
If you have not created a ViewCompose application yet, build the first application. That page is optional setup help, not a prerequisite for the capability tutorials.
Executable sample contract
The samples/tutorials
module contains one file per tutorial and resolves ViewCompose exclusively from Maven Central.
verifyTutorialSamples compiles the module, checks that both languages copy the exact source
region, and verifies each page's dependency declaration.