From wiki.ginstr.com
Revision as of 13:05, 12 July 2017 by Mark (talk | contribs) (formatting)
Jump to: navigation, search

GnCheckBox

Widget XML tag
<com.ginstr.widgets.GnCheckBox>
Description
GnCheckBox inherits regular Android CheckBox widget.
It can use action gn:act_setCheck to define events that happen when widget is checked or unchecked.

XML Attributes Description

Attribute Description
gn:s_text Displays text next to checkbox

Can be

  • @string
gn:enabled Changes widget state

Can be

  • true - enables the widget
  • false - disables the widget
gn:background_checked Represents a background of true state

Can be

  • @drawable
background_unchecked Represents a background of false state

Can be

  • @drawable

Example

<com.ginstr.widgets.GnCheckBox  
  android:id="@+id/txtToiletServiceToiletCleaningCompletedDATA"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:checked="false" />