Skip to content

Commit

Permalink
Change Styling sample to show new date cell background form features
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatoliy Shulipov committed Apr 13, 2021
1 parent 27aeb19 commit a34e658
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CodeStylingDemoFragment : BaseFragment() {
}

with(viewBinding.calendarView) {
setDrawGridOnSelectedDates(drawGrid = true)
setDrawGridOnSelectedDates(drawGrid = false)
setGridColorRes(R.color.custom_calendar_grid_color)

setYearSelectionBarBackgroundColorRes(R.color.custom_calendar_year_selection_background)
Expand All @@ -45,12 +45,13 @@ class CodeStylingDemoFragment : BaseFragment() {

setMonthTextColorRes(R.color.custom_calendar_month_text_color)

setDateCellBackgroundRes(R.drawable.custom_date_bg_selector)
setDateCellBackgroundRes(R.drawable.custom_calendar_drawable)
setDateCellBackgroundTintRes(R.color.custom_date_cell_background_color)
setDateCellTextColorRes(R.color.custom_date_text_selector)
}

if (savedInstanceState == null) {
viewBinding.calendarView.setupCalendar(selectionMode = SelectionMode.MULTIPLE)
viewBinding.calendarView.setupCalendar(selectionMode = SelectionMode.RANGE)
}
}

Expand Down

0 comments on commit a34e658

Please sign in to comment.