-
public final class DatePickerBuilderCreated by Applandeo Team.
-
-
Constructor Summary
Constructors Constructor Description DatePickerBuilder(Context context, OnSelectDateListener onSelectDateListener)
-
Method Summary
Modifier and Type Method Description final DatePickerbuild()final <ERROR CLASS>pickerType(Integer calendarType)final <ERROR CLASS>setPickerType(Integer calendarType)final <ERROR CLASS>date(Calendar calendar)Sets the initially selected date of the date picker final <ERROR CLASS>firstDayOfWeek(CalendarWeekDay weekDay)This method set a first day of week, default is monday or sunday depending on user location final <ERROR CLASS>setDate(Calendar calendar)final <ERROR CLASS>headerColor(@ColorRes() Integer color)final <ERROR CLASS>setHeaderColor(@ColorRes() Integer color)final <ERROR CLASS>headerVisibility(Integer visibility)final <ERROR CLASS>setHeaderVisibility(Integer visibility)final <ERROR CLASS>abbreviationsBarVisibility(Integer visibility)final <ERROR CLASS>setAbbreviationsBarVisibility(Integer visibility)final <ERROR CLASS>headerLabelColor(@ColorRes() Integer color)final <ERROR CLASS>setHeaderLabelColor(@ColorRes() Integer color)final <ERROR CLASS>previousButtonSrc(@DrawableRes() Integer drawable)Sets the drawable resource to use for the previous button in the date picker dialog final <ERROR CLASS>setPreviousButtonSrc(@DrawableRes() Integer drawable)final <ERROR CLASS>forwardButtonSrc(@DrawableRes() Integer drawable)Sets the drawable resource to use for the forward button in the date picker dialog final <ERROR CLASS>setForwardButtonSrc(@DrawableRes() Integer drawable)final <ERROR CLASS>typefaceSrc(@FontRes() Integer font)Sets the typeface to use for calendar view final <ERROR CLASS>todayTypefaceSrc(@FontRes() Integer font)Sets the typeface of today date. final <ERROR CLASS>selectionColor(@ColorRes() Integer color)Sets the color of the selection circle in the date picker dialog final <ERROR CLASS>setSelectionColor(@ColorRes() Integer color)final <ERROR CLASS>todayLabelColor(@ColorRes() Integer color)final <ERROR CLASS>setTodayLabelColor(@ColorRes() Integer color)final <ERROR CLASS>highlightedDaysLabelsColor(@ColorRes() Integer color)final <ERROR CLASS>setHighlightedDaysLabelsColor(@ColorRes() Integer color)final <ERROR CLASS>dialogButtonsColor(@ColorRes() Integer color)final <ERROR CLASS>setDialogButtonsColor(@ColorRes() Integer color)final <ERROR CLASS>minimumDate(Calendar calendar)Sets the minimum available date of the date picker dialog final <ERROR CLASS>setMinimumDate(Calendar calendar)final <ERROR CLASS>maximumDate(Calendar calendar)Sets the maximum available date of the date picker dialog final <ERROR CLASS>setMaximumDate(Calendar calendar)final <ERROR CLASS>disabledDays(List<Calendar> disabledDays)final <ERROR CLASS>setDisabledDays(List<Calendar> disabledDays)final <ERROR CLASS>highlightedDays(List<Calendar> highlightedDays)final <ERROR CLASS>setHighlightedDays(List<Calendar> highlightedDays)final <ERROR CLASS>previousPageChangeListener(OnCalendarPageChangeListener listener)Sets the previous page change listener which is called when scrolling to the previous page final <ERROR CLASS>setPreviousPageChangeListener(OnCalendarPageChangeListener listener)final <ERROR CLASS>forwardPageChangeListener(OnCalendarPageChangeListener listener)Sets the forward page change listener which is called when scrolling to the next page final <ERROR CLASS>setForwardPageChangeListener(OnCalendarPageChangeListener listener)final <ERROR CLASS>disabledDaysLabelsColor(@ColorRes() Integer color)final <ERROR CLASS>setDisabledDaysLabelsColor(@ColorRes() Integer color)final <ERROR CLASS>abbreviationsBarColor(@ColorRes() Integer color)final <ERROR CLASS>setAbbreviationsBarColor(@ColorRes() Integer color)final <ERROR CLASS>pagesColor(@ColorRes() Integer color)Sets the color of the calendar background final <ERROR CLASS>setPagesColor(@ColorRes() Integer color)final <ERROR CLASS>abbreviationsLabelsColor(@ColorRes() Integer color)final <ERROR CLASS>setAbbreviationsLabelsColor(@ColorRes() Integer color)final <ERROR CLASS>daysLabelsColor(@ColorRes() Integer color)final <ERROR CLASS>setDaysLabelsColor(@ColorRes() Integer color)final <ERROR CLASS>selectionLabelColor(@ColorRes() Integer color)final <ERROR CLASS>setSelectionLabelColor(@ColorRes() Integer color)final <ERROR CLASS>anotherMonthsDaysLabelsColor(@ColorRes() Integer color)Sets the color of visible day numbers from the previous to the next month pages final <ERROR CLASS>setAnotherMonthsDaysLabelsColor(@ColorRes() Integer color)final <ERROR CLASS>selectedDays(List<Calendar> selectedDays)final <ERROR CLASS>setSelectedDays(List<Calendar> selectedDays)final <ERROR CLASS>maximumDaysRange(Integer maximumDaysRange)Sets the maximum number of selectable days in range final <ERROR CLASS>setMaximumDaysRange(Integer maximumDaysRange)final <ERROR CLASS>todayColor(Integer color)final <ERROR CLASS>setTodayColor(@ColorRes() Integer color)final <ERROR CLASS>navigationVisibility(Integer visibility)Sets whether the date picker navigation buttons should be visible final <ERROR CLASS>setNavigationVisibility(Integer visibility)final <ERROR CLASS>selectionDisabled(Boolean isDisabled)Disables day selection final <ERROR CLASS>selectionBackground(@DrawableRes() Integer drawable)final <ERROR CLASS>selectionBetweenMonthsEnabled(Boolean isEnabled)Allows to select a range of dates between months Works only in range picker mode final <ERROR CLASS>setSelectionDisabled(Boolean isDisabled)final <ERROR CLASS>events(List<EventDay> eventDays)This method is used to set a list of events displayed in calendar cells, visible as images under the day number. final <ERROR CLASS>setEvents(List<EventDay> eventDays)final <ERROR CLASS>calendarDays(List<CalendarDay> days)-
-
Constructor Detail
-
DatePickerBuilder
DatePickerBuilder(Context context, OnSelectDateListener onSelectDateListener)
-
-
Method Detail
-
build
final DatePicker build()
-
pickerType
final <ERROR CLASS> pickerType(Integer calendarType)
-
setPickerType
@Deprecated(message = Use pickerType(calendarType), replaceWith = @ReplaceWith(imports = {}, expression = pickerType(calendarType))) final <ERROR CLASS> setPickerType(Integer calendarType)
-
date
final <ERROR CLASS> date(Calendar calendar)
Sets the initially selected date of the date picker
- Parameters:
calendar- The initially selected date as a {@link Calendar} object
-
firstDayOfWeek
final <ERROR CLASS> firstDayOfWeek(CalendarWeekDay weekDay)
This method set a first day of week, default is monday or sunday depending on user location
-
setDate
@Deprecated(message = Use date(calendar), replaceWith = @ReplaceWith(imports = {}, expression = date(calendar))) final <ERROR CLASS> setDate(Calendar calendar)
-
headerColor
final <ERROR CLASS> headerColor(@ColorRes() Integer color)
-
setHeaderColor
@Deprecated(message = Use headerColor(color), replaceWith = @ReplaceWith(imports = {}, expression = headerColor(color))) final <ERROR CLASS> setHeaderColor(@ColorRes() Integer color)
-
headerVisibility
final <ERROR CLASS> headerVisibility(Integer visibility)
-
setHeaderVisibility
@Deprecated(message = Use headerVisibility(visibility), replaceWith = @ReplaceWith(imports = {}, expression = headerVisibility(visibility))) final <ERROR CLASS> setHeaderVisibility(Integer visibility)
-
abbreviationsBarVisibility
final <ERROR CLASS> abbreviationsBarVisibility(Integer visibility)
-
setAbbreviationsBarVisibility
@Deprecated(message = Use abbreviationsBarVisibility(visibility), replaceWith = @ReplaceWith(imports = {}, expression = abbreviationsBarVisibility(visibility))) final <ERROR CLASS> setAbbreviationsBarVisibility(Integer visibility)
-
headerLabelColor
final <ERROR CLASS> headerLabelColor(@ColorRes() Integer color)
-
setHeaderLabelColor
@Deprecated(message = Use headerLabelColor(color), replaceWith = @ReplaceWith(imports = {}, expression = headerLabelColor(color))) final <ERROR CLASS> setHeaderLabelColor(@ColorRes() Integer color)
-
previousButtonSrc
final <ERROR CLASS> previousButtonSrc(@DrawableRes() Integer drawable)
Sets the drawable resource to use for the previous button in the date picker dialog
- Parameters:
drawable- The drawable to use as a drawable resource
-
setPreviousButtonSrc
@Deprecated(message = Use previousButtonSrc(drawable), replaceWith = @ReplaceWith(imports = {}, expression = previousButtonSrc(drawable))) final <ERROR CLASS> setPreviousButtonSrc(@DrawableRes() Integer drawable)
-
forwardButtonSrc
final <ERROR CLASS> forwardButtonSrc(@DrawableRes() Integer drawable)
Sets the drawable resource to use for the forward button in the date picker dialog
- Parameters:
drawable- The drawable to use as a drawable resource
-
setForwardButtonSrc
@Deprecated(message = Use forwardButtonSrc(drawable), replaceWith = @ReplaceWith(imports = {}, expression = forwardButtonSrc(drawable))) final <ERROR CLASS> setForwardButtonSrc(@DrawableRes() Integer drawable)
-
typefaceSrc
final <ERROR CLASS> typefaceSrc(@FontRes() Integer font)
Sets the typeface to use for calendar view
- Parameters:
font- The font to use as a font resource
-
todayTypefaceSrc
final <ERROR CLASS> todayTypefaceSrc(@FontRes() Integer font)
Sets the typeface of today date. Most common use is to set it bold to differentiate it form the rest of dates in calendar view.
- Parameters:
font- The font to use as a font resource
-
selectionColor
final <ERROR CLASS> selectionColor(@ColorRes() Integer color)
Sets the color of the selection circle in the date picker dialog
- Parameters:
color- The color to use as a color resource
-
setSelectionColor
@Deprecated(message = Use selectionColor(color), replaceWith = @ReplaceWith(imports = {}, expression = selectionColor(color))) final <ERROR CLASS> setSelectionColor(@ColorRes() Integer color)
-
todayLabelColor
final <ERROR CLASS> todayLabelColor(@ColorRes() Integer color)
-
setTodayLabelColor
@Deprecated(message = Use todayLabelColor(color), replaceWith = @ReplaceWith(imports = {}, expression = todayLabelColor(color))) final <ERROR CLASS> setTodayLabelColor(@ColorRes() Integer color)
-
highlightedDaysLabelsColor
final <ERROR CLASS> highlightedDaysLabelsColor(@ColorRes() Integer color)
-
setHighlightedDaysLabelsColor
@Deprecated(message = Use highlightedDaysLabelsColor(color), replaceWith = @ReplaceWith(imports = {}, expression = highlightedDaysLabelsColor(color))) final <ERROR CLASS> setHighlightedDaysLabelsColor(@ColorRes() Integer color)
-
dialogButtonsColor
final <ERROR CLASS> dialogButtonsColor(@ColorRes() Integer color)
-
setDialogButtonsColor
@Deprecated(message = Use dialogButtonsColor(color), replaceWith = @ReplaceWith(imports = {}, expression = dialogButtonsColor(color))) final <ERROR CLASS> setDialogButtonsColor(@ColorRes() Integer color)
-
minimumDate
final <ERROR CLASS> minimumDate(Calendar calendar)
Sets the minimum available date of the date picker dialog
- Parameters:
calendar- The minimum available date as a {@link Calendar} object
-
setMinimumDate
@Deprecated(message = Use minimumDate(calendar), replaceWith = @ReplaceWith(imports = {}, expression = minimumDate(calendar))) final <ERROR CLASS> setMinimumDate(Calendar calendar)
-
maximumDate
final <ERROR CLASS> maximumDate(Calendar calendar)
Sets the maximum available date of the date picker dialog
- Parameters:
calendar- The maximum available date as a {@link Calendar} object
-
setMaximumDate
@Deprecated(message = Use maximumDate(calendar), replaceWith = @ReplaceWith(imports = {}, expression = maximumDate(calendar))) final <ERROR CLASS> setMaximumDate(Calendar calendar)
-
disabledDays
final <ERROR CLASS> disabledDays(List<Calendar> disabledDays)
-
setDisabledDays
@Deprecated(message = Use disabledDays(disabledDays), replaceWith = @ReplaceWith(imports = {}, expression = disabledDays(disabledDays))) final <ERROR CLASS> setDisabledDays(List<Calendar> disabledDays)
-
highlightedDays
final <ERROR CLASS> highlightedDays(List<Calendar> highlightedDays)
-
setHighlightedDays
@Deprecated(message = Use highlightedDays(highlightedDays), replaceWith = @ReplaceWith(imports = {}, expression = highlightedDays(highlightedDays))) final <ERROR CLASS> setHighlightedDays(List<Calendar> highlightedDays)
-
previousPageChangeListener
final <ERROR CLASS> previousPageChangeListener(OnCalendarPageChangeListener listener)
Sets the previous page change listener which is called when scrolling to the previous page
- Parameters:
listener- The previous page change listener to use
-
setPreviousPageChangeListener
@Deprecated(message = Use previousPageChangeListener(listener), replaceWith = @ReplaceWith(imports = {}, expression = previousPageChangeListener(listener))) final <ERROR CLASS> setPreviousPageChangeListener(OnCalendarPageChangeListener listener)
-
forwardPageChangeListener
final <ERROR CLASS> forwardPageChangeListener(OnCalendarPageChangeListener listener)
Sets the forward page change listener which is called when scrolling to the next page
- Parameters:
listener- The forward page change listener to use
-
setForwardPageChangeListener
@Deprecated(message = Use forwardPageChangeListener(listener), replaceWith = @ReplaceWith(imports = {}, expression = forwardPageChangeListener(listener))) final <ERROR CLASS> setForwardPageChangeListener(OnCalendarPageChangeListener listener)
-
disabledDaysLabelsColor
final <ERROR CLASS> disabledDaysLabelsColor(@ColorRes() Integer color)
-
setDisabledDaysLabelsColor
@Deprecated(message = Use disabledDaysLabelsColor(color), replaceWith = @ReplaceWith(imports = {}, expression = disabledDaysLabelsColor(color))) final <ERROR CLASS> setDisabledDaysLabelsColor(@ColorRes() Integer color)
-
abbreviationsBarColor
final <ERROR CLASS> abbreviationsBarColor(@ColorRes() Integer color)
-
setAbbreviationsBarColor
@Deprecated(message = Use abbreviationsBarColor(color), replaceWith = @ReplaceWith(imports = {}, expression = abbreviationsBarColor(color))) final <ERROR CLASS> setAbbreviationsBarColor(@ColorRes() Integer color)
-
pagesColor
final <ERROR CLASS> pagesColor(@ColorRes() Integer color)
Sets the color of the calendar background
- Parameters:
color- The color to use as a color resource
-
setPagesColor
@Deprecated(message = Use pagesColor(color), replaceWith = @ReplaceWith(imports = {}, expression = pagesColor(color))) final <ERROR CLASS> setPagesColor(@ColorRes() Integer color)
-
abbreviationsLabelsColor
final <ERROR CLASS> abbreviationsLabelsColor(@ColorRes() Integer color)
-
setAbbreviationsLabelsColor
@Deprecated(message = Use abbreviationsLabelsColor(color), replaceWith = @ReplaceWith(imports = {}, expression = abbreviationsLabelsColor(color))) final <ERROR CLASS> setAbbreviationsLabelsColor(@ColorRes() Integer color)
-
daysLabelsColor
final <ERROR CLASS> daysLabelsColor(@ColorRes() Integer color)
-
setDaysLabelsColor
@Deprecated(message = Use daysLabelsColor(color), replaceWith = @ReplaceWith(imports = {}, expression = daysLabelsColor(color))) final <ERROR CLASS> setDaysLabelsColor(@ColorRes() Integer color)
-
selectionLabelColor
final <ERROR CLASS> selectionLabelColor(@ColorRes() Integer color)
-
setSelectionLabelColor
@Deprecated(message = Use selectionLabelColor(color), replaceWith = @ReplaceWith(imports = {}, expression = selectionLabelColor(color))) final <ERROR CLASS> setSelectionLabelColor(@ColorRes() Integer color)
-
anotherMonthsDaysLabelsColor
final <ERROR CLASS> anotherMonthsDaysLabelsColor(@ColorRes() Integer color)
Sets the color of visible day numbers from the previous to the next month pages
- Parameters:
color- The color to use as a color resource
-
setAnotherMonthsDaysLabelsColor
@Deprecated(message = Use anotherMonthsDaysLabelsColor(color), replaceWith = @ReplaceWith(imports = {}, expression = anotherMonthsDaysLabelsColor(color))) final <ERROR CLASS> setAnotherMonthsDaysLabelsColor(@ColorRes() Integer color)
-
selectedDays
final <ERROR CLASS> selectedDays(List<Calendar> selectedDays)
-
setSelectedDays
@Deprecated(message = Use selectedDays(selectedDays), replaceWith = @ReplaceWith(imports = {}, expression = selectedDays(selectedDays))) final <ERROR CLASS> setSelectedDays(List<Calendar> selectedDays)
-
maximumDaysRange
final <ERROR CLASS> maximumDaysRange(Integer maximumDaysRange)
Sets the maximum number of selectable days in range
- Parameters:
maximumDaysRange- The number of maximum selectable days in range
-
setMaximumDaysRange
@Deprecated(message = Use maximumDaysRange(maximumDaysRange), replaceWith = @ReplaceWith(imports = {}, expression = maximumDaysRange(maximumDaysRange))) final <ERROR CLASS> setMaximumDaysRange(Integer maximumDaysRange)
-
todayColor
final <ERROR CLASS> todayColor(Integer color)
-
setTodayColor
@Deprecated(message = Use todayColor(color), replaceWith = @ReplaceWith(imports = {}, expression = todayColor(color))) final <ERROR CLASS> setTodayColor(@ColorRes() Integer color)
-
navigationVisibility
final <ERROR CLASS> navigationVisibility(Integer visibility)
Sets whether the date picker navigation buttons should be visible
- Parameters:
visibility- The visibility
-
setNavigationVisibility
@Deprecated(message = Use navigationVisibility(visibility), replaceWith = @ReplaceWith(imports = {}, expression = navigationVisibility(visibility))) final <ERROR CLASS> setNavigationVisibility(Integer visibility)
-
selectionDisabled
final <ERROR CLASS> selectionDisabled(Boolean isDisabled)
Disables day selection
-
selectionBackground
final <ERROR CLASS> selectionBackground(@DrawableRes() Integer drawable)
-
selectionBetweenMonthsEnabled
final <ERROR CLASS> selectionBetweenMonthsEnabled(Boolean isEnabled)
Allows to select a range of dates between months Works only in range picker mode
-
setSelectionDisabled
@Deprecated(message = Use selectionDisabled(isDisabled), replaceWith = @ReplaceWith(imports = {}, expression = selectionDisabled(isDisabled))) final <ERROR CLASS> setSelectionDisabled(Boolean isDisabled)
-
events
final <ERROR CLASS> events(List<EventDay> eventDays)
This method is used to set a list of events displayed in calendar cells, visible as images under the day number.
- Parameters:
eventDays- List of EventDay objects
-
setEvents
@Deprecated(message = Use events(eventDays), replaceWith = @ReplaceWith(imports = {}, expression = events(eventDays))) final <ERROR CLASS> setEvents(List<EventDay> eventDays)
-
calendarDays
final <ERROR CLASS> calendarDays(List<CalendarDay> days)
-
-
-
-