Skip to content

Instantly share code, notes, and snippets.

@BonusTrack02
Created October 23, 2023 15:39
Show Gist options
  • Save BonusTrack02/5587dfd7b87cad867f716bff4ba70575 to your computer and use it in GitHub Desktop.
Save BonusTrack02/5587dfd7b87cad867f716bff4ba70575 to your computer and use it in GitHub Desktop.
DateRangePicker using Material3 theme and set current, prior date
val dateRangePicker = MaterialDatePicker.Builder.dateRangePicker()
.setTitleText("날짜를 선택하세요")
.setSelection(Pair(priorDate, currentDate))
.setTheme(com.google.android.material.R.style.ThemeOverlay_Material3_MaterialCalendar)
.build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment