Material example showing persistent and modal bottom sheets with state-change callbacks.
Buttons expand or collapse the persistent sheet and open the modal sheet. State callbacks update the drag label and button text, while sheet items provide click feedback.
Requires JDK 17 or newer and Android SDK 37. The minimum Android version is 6.0 (API 23); the app targets API 35. Dependencies are pinned in gradle/libs.versions.toml.
From this directory:
./gradlew :app:assembleDebug :app:lintDebug :app:testDebugUnitTest :app:assembleDebugAndroidTest
./gradlew :app:installDebugAfter installing the app on Automotive_1408p_landscape (1408×792):
./record-gif.shSet ANDROID_SERIAL to select the emulator and OPENMAPVIEW_DIR if the OpenMapView checkout is elsewhere. The script uses its scripts/capture-gif.sh helper and FFmpeg, crops the system bars, and keeps screenshot.gif below 4 MiB. The original PNG is retained.
