Skip to content

Latest commit

 

History

History

BottomSheet1

README.md

BottomSheet1

Material example showing persistent and modal bottom sheets with state-change callbacks.

Details

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.

Build and run

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:installDebug

Recording

After installing the app on Automotive_1408p_landscape (1408×792):

./record-gif.sh

Set 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.

Screenshot

BottomSheet1 screenshot