(→Events) |
|||
Line 9: | Line 9: | ||
: <code>[[GnDateTimePicker]]</code> inherits regular Android <code>[http://developer.android.com/reference/android/widget/LinearLayout.html LinearLayout]</code> widget. | : <code>[[GnDateTimePicker]]</code> inherits regular Android <code>[http://developer.android.com/reference/android/widget/LinearLayout.html LinearLayout]</code> widget. | ||
: It provides date and time entry. | : It provides date and time entry. | ||
+ | |||
+ | ==XML Attributes Description== | ||
+ | Note: An attribute marked with asterisk (<span style="color:#FF0000">*</span>) is a mandatory parameter when creating widget. | ||
+ | |||
+ | {| class="wikitable sortable" style="font-size: 85%; text-align: left;" | ||
+ | |- | ||
+ | ! scope="col" | Attribute | ||
+ | ! scope="col" | Description | ||
+ | |- | ||
+ | | title="Attribute" | <code>gn:set24HourFormat</code> | ||
+ | | title="Description" | Sets whether this widget displays time in 24-hour mode or 12-hour mode with an AM/PM picker. | ||
+ | |||
+ | Can be | ||
+ | * <code>[[Datatypes#text|text]]</code> | ||
+ | * <code>[[Datatypes#status|status]]</code> | ||
+ | |- | ||
+ | |} | ||
==Events== | ==Events== |
Revision as of 10:04, 19 November 2019
GnDateTimePicker
- Widget XML tag
-
<com.ginstr.widgets.GnDateTimePicker>
- Description
-
GnDateTimePicker
inherits regular AndroidLinearLayout
widget. - It provides date and time entry.
XML Attributes Description
Note: An attribute marked with asterisk (*) is a mandatory parameter when creating widget.
Attribute | Description |
---|---|
gn:set24HourFormat
|
Sets whether this widget displays time in 24-hour mode or 12-hour mode with an AM/PM picker.
Can be |
Events
Data types
Input |
---|
dateTime
|
Output |
---|
dateTime
|
Example
<com.ginstr.widgets.GnDateTimePicker android:id="@+id/laundryServiceReport_dateAndTimeReceived" android:layout_width="match_parent" android:layout_height="wrap_content" />