From wiki.ginstr.com
Jump to: navigation, search
(Events)
(XML Attributes Description)
Line 11: Line 11:
  
 
==XML Attributes Description==
 
==XML Attributes Description==
none
+
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 11:04, 19 November 2019

GnTimePicker

Widget XML tag
<com.ginstr.widgets.GnTimePicker>
Description
GnTimePicker inherits regular Android TimePicker widget.
It provides 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

gn:act_setClick
gn:act_setLongClick

Data types

Input
text
time
dateTime
Output
time


Example

<com.ginstr.widgets.GnTimePicker
  android:id="@+id/meter_deinstallationTime" 
  android:layout_width="match_parent" 
  android:layout_height="wrap_content" />