Android Study Notes (27): Calendar view Calendar Analysis
The calendar view CalendarView can be used to display and select a date.
You can call setOnDateChangedListener () to bind the event listener.
Common XML attributes and related methods:
XML attributes |
Related Methods |
Description |
Android: dateTextAppearance |
SetDateTextAppearance (int) |
Set the eyes of the date text in the calendar View |
Android: firstDayOfWeek |
SetFirstDayOfWeek (int) |
Set the first day of each week |
Android: focusedMonthDateColor |
SetFocusedMonthDateColor (int) |
Set the date color of the month in which the focus is obtained. |
Android: maxDate |
SetMaxDate (long) |
Set the supported maximum date, and specify the maximum date in mm/dd/yyyy format |
Android: minDate |
SetMinDate (long) |
Set the supported minimum date, and specify the minimum date in mm/dd/yyyy format |
Android: selectedDateVerticalBar |
SetSelectedDateVerticalBar (int) |
Set the drawable corresponding to the dotted line drawn on both sides of the selected date |
Android: selectedWeekBackgroundColor |
SetSelectedWeekBackgroundColor (int) |
Set the background color of the selected week |
Android: showWeekNumber |
SetShowWeekNumber (boolean) |
Set whether to display the week |
Android: shownWeekCount |
SetShownWeekCount (int) |
Set the number of weeks displayed |
Android: unfocusedMonthDateColor |
SetUnfocusedMonthDateColor (int) |
Set the color of the text with no focus month or date |
Android: weekDayTextAppearance |
SetWeekDayTextAppearance (int) |
Set the text style of the day of the week |
Android: weekNumberColor |
SetWeekNumberColor (int) |
Set the color of the weekly ID |
Android: weekSeparatorLineColor |
SetWeekSeparatorLineColor (int) |
Set the color of the weekly separator. |