Android Guides | Samples

Android.Widget.TimePicker Class

A widget for selecting the time of day, in either 24-hour or AM/PM mode.

See Also: TimePicker

Syntax

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

Remarks

A widget for selecting the time of day, in either 24-hour or AM/PM mode.

For a dialog using this view, see TimePickerDialog. See the Pickers guide for more information.

[Android Documentation]

Requirements

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

The members of Android.Widget.TimePicker 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

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

Is24HourView() : Boolean
SetIs24HourView(Boolean)
Sets whether this widget displays time in 24-hour mode or 12-hour mode with an AM/PM picker.
SetOnTimeChangedListener(TimePicker+IOnTimeChangedListener)
Set the callback that indicates the time has been adjusted by the user.

Public Events