From wiki.ginstr.com
Jump to: navigation, search
(Data types)
Line 44: Line 44:
 
| title="Value" | <code>[[Datatypes#text|text]]</code>
 
| title="Value" | <code>[[Datatypes#text|text]]</code>
 
|-
 
|-
| title="Value" | <code>[[Datatypes#signature|signature]]</code>
+
| title="Value" | <code>[[Datatypes#date|date]]</code>
 +
|-
 +
| title="Value" | <code>[[Datatypes#dateTime|dateTime]]</code>
 +
|-
 +
| title="Value" | <code>[[Datatypes#long|long]]</code>
 
|}
 
|}
  
Line 51: Line 55:
 
! scope="col" | Output
 
! scope="col" | Output
 
|-
 
|-
| title="Value" | <code>[[Datatypes#signature|signature]]</code>
+
| title="Value" | <code>[[Datatypes#date|date]]</code>
 +
|-
 +
| title="Value" | <code>[[Datatypes#dateTime|dateTime]]</code>
 
|}
 
|}
 
  
 
==Example==
 
==Example==

Revision as of 14:15, 6 August 2019

GnDatePicker

Widget XML tag
<com.ginstr.widgets.GnDatePicker>
Description
GnDatePicker inherits regular Android DatePicker widget.
It provides date entry.

XML Attributes Description

Attribute Description
gn:dataType Represents widget data type

Can be

gn:s_minDate Sets minimum permitted date

Can be

  • current - Sets the current date as minimum date
  • minusX - Sets minimum date as current date minus X days
  • plusX - Sets minimum date as current date plus X days
gn:s_maxDate Sets maximum permitted date

Can be

  • current - Sets the current date as maximum date
  • minusX - Sets maximum date as current date minus X days
  • plusX - Sets maximum date as current date plus X days

Data types

Input
text
date
dateTime
long
Output
date
dateTime

Example

<com.ginstr.widgets.GnDatePicker
  android:id="@+id/meter_deinstallationDate" 
  android:layout_width="match_parent" 
  android:layout_height="wrap_content"
  gn:dataType="date" />