From wiki.ginstr.com
Jump to: navigation, search

GnDateTimePicker

Widget XML tag
<com.ginstr.widgets.GnDateTimePicker>
Description
GnDateTimePicker inherits regular Android LinearLayout 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: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
gn:showDate(GPU II) Sets whether this widget displays date part. Default value true

Can be

gn:disableDate(GPU II) Sets whether this widget displays date part as read only. Default value false

Can be

gn:showSeconds(GPU II) Sets whether this widget displays seconds picker. Default value false

Can be

Events

gn:act_setOnDateTime

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