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

GnTimePicker

Widget XML tag
<com.ginstr.widgets.GnTimePicker>
Description
GnTimePicker inherits customized Android TimePicker widget with additional seconds NumberPicker 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
gn:showSeconds(GPU1) If true, it will display additional NumberPicker for seconds

Can be

  • true|false - default value false

Events

none

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" />