public class MaterialCalendarView.StateBuilder
extends java.lang.Object
Constructor and Description |
---|
StateBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
MaterialCalendarView.StateBuilder |
isCacheCalendarPositionEnabled(boolean cacheCurrentPosition)
Use this method to enable saving the current position when switching
between week and month mode.
|
MaterialCalendarView.StateBuilder |
setCalendarDisplayMode(CalendarMode mode)
Set calendar display mode.
|
MaterialCalendarView.StateBuilder |
setFirstDayOfWeek(int day)
Sets the first day of the week.
|
MaterialCalendarView.StateBuilder |
setMaximumDate(java.util.Calendar calendar) |
MaterialCalendarView.StateBuilder |
setMaximumDate(CalendarDay calendar) |
MaterialCalendarView.StateBuilder |
setMaximumDate(java.util.Date date) |
MaterialCalendarView.StateBuilder |
setMinimumDate(java.util.Calendar calendar) |
MaterialCalendarView.StateBuilder |
setMinimumDate(CalendarDay calendar) |
MaterialCalendarView.StateBuilder |
setMinimumDate(java.util.Date date) |
public MaterialCalendarView.StateBuilder setFirstDayOfWeek(int day)
Uses the java.util.Calendar day constants.
day
- The first day of the week as a java.util.Calendar day constant.Calendar
public MaterialCalendarView.StateBuilder setCalendarDisplayMode(CalendarMode mode)
mode
- - calendar modepublic MaterialCalendarView.StateBuilder setMinimumDate(@Nullable java.util.Calendar calendar)
calendar
- set the minimum selectable date, null for no minimumpublic MaterialCalendarView.StateBuilder setMinimumDate(@Nullable java.util.Date date)
date
- set the minimum selectable date, null for no minimumpublic MaterialCalendarView.StateBuilder setMinimumDate(@Nullable CalendarDay calendar)
calendar
- set the minimum selectable date, null for no minimumpublic MaterialCalendarView.StateBuilder setMaximumDate(@Nullable java.util.Calendar calendar)
calendar
- set the maximum selectable date, null for no maximumpublic MaterialCalendarView.StateBuilder setMaximumDate(@Nullable java.util.Date date)
date
- set the maximum selectable date, null for no maximumpublic MaterialCalendarView.StateBuilder setMaximumDate(@Nullable CalendarDay calendar)
calendar
- set the maximum selectable date, null for no maximumpublic MaterialCalendarView.StateBuilder isCacheCalendarPositionEnabled(boolean cacheCurrentPosition)
cacheCurrentPosition
- Set to true to cache the current position, false otherwise.public void commit()