From wiki.ginstr.com
Jump to: navigation, search
m
(Example)
 
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<span STYLE="font-size: xx-large"><code>GnTimePicker</code></span>
 
<span STYLE="font-size: xx-large"><code>GnTimePicker</code></span>
 
[[Category:Widget_Library]]
 
[[Category:Widget_Library]]
;Inherited classes: <code>[http://developer.android.com/reference/android/view/View.html View]</code>
 
;Android class type: <code>[http://developer.android.com/reference/android/widget/TimePicker.html TimePicker]</code>
 
;Widget XML tag: <code><com.ginstr.widgets.GnTimePicker></code>
 
  
 +
;Widget XML tag
 +
: <code><com.ginstr.widgets.GnTimePicker></code>
  
<code>[[GnTimePicker]]</code> provides time entry.
+
;Description
 +
: <code>[[GnTimePicker]]</code> inherits regular Android <code>[http://developer.android.com/reference/android/widget/TimePicker.html TimePicker]</code> widget.
 +
: It provides 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:is24HourFormat</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>
 +
|-
 +
| title="Attribute" | <code>gn:textColor</code>(M103.8.1)
 +
| title="Description" | Defines widget's color
 +
Can be
 +
* <code>hardcoded</code> - hexadecimal color representation e.g. #000000
 +
|-
 +
|}
 +
 
 +
==Events==
 +
: <code>[[gn:act_setClick]]</code>
 +
: <code>[[gn:act_setLongClick]]</code>
 +
 
 +
==Data types==
 +
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 +
|-
 +
! scope="col" | Input
 +
|-
 +
| title="Value" | <code>[[Datatypes#text|text]]</code>
 +
|-
 +
| title="Value" | <code>[[Datatypes#time|time]]</code>
 +
|-
 +
| title="Value" | <code>[[Datatypes#dateTime|dateTime]]</code>
 +
|}
 +
 
 +
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 +
|-
 +
! scope="col" | Output
 +
|-
 +
| title="Value" | <code>[[Datatypes#time|time]]</code>
 +
|}
 +
 
 +
 
 +
==Example==
 +
<syntaxhighlight code="xml">
 +
<com.ginstr.widgets.GnTimePicker
 +
  android:id="@+id/meter_deinstallationTime"
 +
  android:layout_width="match_parent"
 +
  android:layout_height="wrap_content"
 +
  gn:textColor="#000000" />
 +
</syntaxhighlight>

Latest revision as of 00:57, 25 March 2020

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:is24HourFormat Sets whether this widget displays time in 24-hour mode or 12-hour mode with an AM/PM picker.

Can be

gn:textColor(M103.8.1) Defines widget's color

Can be

  • hardcoded - hexadecimal color representation e.g. #000000

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"
  gn:textColor="#000000" />