Skip to content

Instantly share code, notes, and snippets.

@BonusTrack02
Created October 23, 2023 16:05
Show Gist options
  • Save BonusTrack02/729539409ad71d862df188731d63ecf6 to your computer and use it in GitHub Desktop.
Save BonusTrack02/729539409ad71d862df188731d63ecf6 to your computer and use it in GitHub Desktop.
DateRangePicker using Material3 all custom settings
val constraintsBuilder =
CalendarConstraints.Builder().setValidator(DateValidatorPointBackward.now())
val dateRangePicker = MaterialDatePicker.Builder.dateRangePicker()
.setTitleText("날짜를 선택하세요")
.setSelection(Pair(priorDate, currentDate))
.setCalendarConstraints(constraintsBuilder.build())
.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