Skip to main content

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…TutorialExtra ViewCompose artifact
update UI from stateUse state and eventsnone
arrange contentUse layouts and modifiersnone
accept editable textUse text inputnone
show a scrolling collectionUse a lazy listnone
follow light, dark, and semantic colorsUse themesnone
move between screensUse navigationviewcompose-navigation-android
show a dialogUse overlaysviewcompose-overlay-material3-android
embed a native ViewUse AndroidViewnone
show and hide content with motionUse AnimatedVisibilityviewcompose-animation
handle taps and long pressesUse gesturesviewcompose-gesture
tune a large lazy listTune lazy-list performancenone
inspect renderer workRead render diagnosticsnone

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.