How g00fy2/spinnerdatepicker works
This is an Android demo for comparing the platform spinner-style DatePickerDialog with MaterialDatePicker, with a theme toggle. The user selects a picker, chooses a date, and sees a formatted date in a toast. MainActivity owns both picker flows, their date constraints and result handling, and the theme switch. The README documents the comparison and Material-themed app; source evidence is limited to MainActivity, so resource-level behavior is shown only where that file supports it.
Main entry points: MainActivity.kt MainActivity · activity_main.xml Main layout
Components 8
App interaction
- MainActivity
app/src/main/kotlin/com/g00fy2/spinnerdatepicker/MainActivity.kt - Main layout
app/src/main/res/layout/activity_main.xml
Picker alternatives
- Spinner dialog
- Material picker
Display and theme
- Date toast
app/src/main/kotlin/com/g00fy2/spinnerdatepicker/MainActivity.kt - Theme resources
app/src/main/res/values/themes.xml - AppCompat delegate
Other components
- User
Connections 6
- User → MainActivity: uses
app/src/main/kotlin/com/g00fy2/spinnerdatepicker/MainActivity.kt - MainActivity → Main layout: inflates
app/src/main/kotlin/com/g00fy2/spinnerdatepicker/MainActivity.kt - MainActivity → Spinner dialog: opens
app/src/main/kotlin/com/g00fy2/spinnerdatepicker/MainActivity.kt - MainActivity → Material picker: opens
app/src/main/kotlin/com/g00fy2/spinnerdatepicker/MainActivity.kt - MainActivity → Date toast: shows result
app/src/main/kotlin/com/g00fy2/spinnerdatepicker/MainActivity.kt - MainActivity → AppCompat delegate: switches mode
app/src/main/kotlin/com/g00fy2/spinnerdatepicker/MainActivity.kt