From wiki.ginstr.com
Jump to: navigation, search
(Created page with "<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div> Category:Widget_Library ;Inherited classes: <code>[http://developer.android.com/reference/android/vi...")
 
Line 5: Line 5:
 
;Widget XML tag: <code><com.ginstr.widgets.GnDatePicker></code>
 
;Widget XML tag: <code><com.ginstr.widgets.GnDatePicker></code>
  
Widget provides date entry.
+
 
 +
<code>[[GnDatePicker]]</code> provides date entry.
  
 
If layout configuration options below are not required, <code>[http://developer.android.com/reference/android/widget/DatePicker.html Android DatePicker]</code> can be used instead.
 
If layout configuration options below are not required, <code>[http://developer.android.com/reference/android/widget/DatePicker.html Android DatePicker]</code> can be used instead.

Revision as of 13:27, 29 June 2016

Inherited classes
View
Android class type
DatePicker
Widget XML tag
<com.ginstr.widgets.GnDatePicker>


GnDatePicker provides date entry.

If layout configuration options below are not required, Android DatePicker can be used instead.

XML Attributes Description

Attribute Description
gn:s_minDate Sets minimum permitted date
gn:s_maxDate Sets maximum permitted date

gn:s_minDate

Sets minimum permitted date

(String) values = current, minusX, plusX

Value Description
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

(String) values = current, minusX, plusX

Value Description
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