-
-
Save BonusTrack02/729539409ad71d862df188731d63ecf6 to your computer and use it in GitHub Desktop.
DateRangePicker using Material3 all custom settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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