TimePicker
Definition
A button that, when clicked on, opens a dialog to allow the user to select a time.
Note: Date and time are manipulated using methods in the Clock
component.
Properties
- BackgroundColor
- Specifies the
TimePicker
’s background color as an alpha-red-green-blue integer. If anImage
has been set, the color change will not be visible until theImage
is removed. - Enabled
- Specifies whether the
TimePicker
should be active and clickable. - FontBold
- Specifies whether the text of the
TimePicker
should be bold. Some fonts do not support bold. - FontItalic
- Specifies whether the text of the
TimePicker
should be italic. Some fonts do not support italic. - FontSize
- Specifies the text font size of the
TimePicker
, measured in sp(scale-independent pixels). - FontTypeface
- Specifies the text font face of the
TimePicker
as default, serif, sans serif, or monospace. - Height
- Specifies the
TimePicker
’s vertical height, measured in pixels. - HeightPercent
- Specifies the
TimePicker
’s vertical height as a percentage of theScreen
’sHeight
. - Hour
- Returns the hour of the time that was last picked using the
TimePicker
`. The time returned is always in the 24hour format. - Image
- Specifies the path of the
TimePicker
’s image. If there is both anImage
and aBackgroundColor
specified, only theImage
will be visible. - Instant
- Returns the instant in time that was last picked using the
TimePicker
. - Minute
- Returns the hour of the time that was last picked using the
TimePicker
. The time returned is always in the 24hour format. - Shape
- Specifies the shape of the
TimePicker
. The valid values for this property are0
(default),1
(rounded),2
(rectangle), and3
(oval). TheShape
will not be visible if anImage
is used. - ShowFeedback
- Specifies if a visual feedback should be shown when a
TimePicker
with an assignedImage
is pressed. - Text
- Specifies the text displayed by the
TimePicker
. - TextAlignment
- Specifies the alignment of the
TimePicker
’s text. Valid values are:0
(normal; e.g., left-justified if text is written left to right),1
(center), or2
(opposite; e.g., right-justified if text is written left to right). - TextColor
- Specifies the text color of the
TimePicker
as an alpha-red-green-blue integer. - Visible
- Specifies whether the
TimePicker
should be visible on the screen. Value istrue
if theTimePicker
is showing andfalse
if hidden. - Width
- Specifies the horizontal width of the
TimePicker
, measured in pixels. - WidthPercent
- Specifies the horizontal width of the
TimePicker
as a percentage of theScreen
’sWidth
.