Skip to content

Latest commit

 

History

History

MyViewPager

README.md

MyViewPager

Navigation-drawer example selecting games with separate Moves, Game, and Chat pages.

Details

Selecting a game replaces the content with a fragment containing a ViewPager. Swipes move between its three pages, and the chat toolbar action switches between the game and chat pages.

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. Python 3 is also required to find the drawer row. 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

MyViewPager screenshot