Freigeben über


CalendarView.SetDate(Int64, Boolean, Boolean) Method

Definition

Sets the selected date in milliseconds since January 1, 1970 00:00:00 in TimeZone#getDefault() time zone.

[Android.Runtime.Register("setDate", "(JZZ)V", "GetSetDate_JZZHandler")]
public virtual void SetDate (long date, bool animate, bool center);
[<Android.Runtime.Register("setDate", "(JZZ)V", "GetSetDate_JZZHandler")>]
abstract member SetDate : int64 * bool * bool -> unit
override this.SetDate : int64 * bool * bool -> unit

Parameters

date
Int64

The date.

animate
Boolean

Whether to animate the scroll to the current date.

center
Boolean

Whether to center the current date even if it is already visible.

Attributes

Exceptions

of the provided date is before the minimal or after the maximal date.

Remarks

Sets the selected date in milliseconds since January 1, 1970 00:00:00 in TimeZone#getDefault() time zone.

Java documentation for android.widget.CalendarView.setDate(long, boolean, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also