Android Guides | Samples

Android.Widget.CalendarView Class

This class is a calendar widget for displaying and selecting dates.

See Also: CalendarView

Syntax

[Android.Runtime.Register("android/widget/CalendarView", DoNotGenerateAcw=true)]
public class CalendarView : FrameLayout

Remarks

This class is a calendar widget for displaying and selecting dates. The range of dates supported by this calendar is configurable. A user can select a date by taping on it and can scroll and fling the calendar to a desired date.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11

The members of Android.Widget.CalendarView are listed below.

See Also: FrameLayout

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

DateInt64. Gets the selected date in milliseconds since January 1, 1970 00:00:00 in TimeZone.Default time zone.
DateTextAppearanceInt32. Gets the text appearance for the calendar dates.
FirstDayOfWeekInt32. Gets the first day of week.
FocusedMonthDateColorColor. Gets the color for the dates in the focused month.
MaxDateInt64. Gets the maximal date supported by this CalendarView in milliseconds since January 1, 1970 00:00:00 in TimeZone.Default time zone.
MinDateInt64. Gets the minimal date supported by this CalendarView in milliseconds since January 1, 1970 00:00:00 in TimeZone.Default time zone.
SelectedDateVerticalBarDrawable. Gets the drawable for the vertical bar shown at the beginning and at the end of the selected date.
SelectedWeekBackgroundColorColor. Gets the background color for the selected week.
ShownWeekCountInt32. Gets the number of weeks to be shown.
ShowWeekNumberBoolean. Gets whether to show the week number.
UnfocusedMonthDateColorColor. Gets the color for the dates in a not focused month.
WeekDayTextAppearanceInt32. Gets the text appearance for the week day abbreviation of the calendar header.
WeekNumberColorColor. Gets the color for the week numbers.
WeekSeparatorLineColorColor. Gets the color for the separator line between weeks.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

SetDate(Int64, Boolean, Boolean)
Sets the selected date in milliseconds since January 1, 1970 00:00:00 in TimeZone.Default time zone.
SetOnDateChangeListener(CalendarView+IOnDateChangeListener)
Sets the listener to be notified upon selected date change.
SetSelectedDateVerticalBar(Int32)
Sets the drawable for the vertical bar shown at the beginning and at the end of the selected date.

Public Events