From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
Line 16: Line 16:
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| title="Attribute" | gn:s_text
+
| title="Attribute" | <code>gn:s_text</code>
 
| title="Description" | Displays text next to checkbox  
 
| title="Description" | Displays text next to checkbox  
 
Can be
 
Can be
 
* <code>@string</code>
 
* <code>@string</code>
 
|-
 
|-
| title="Attribute" | gn:enabled
+
| title="Attribute" | <code>gn:enabled</code>
 
| title="Description" | Changes widget state
 
| title="Description" | Changes widget state
 
Can be
 
Can be
Line 27: Line 27:
 
* <code>false</code> - disables the widget
 
* <code>false</code> - disables the widget
 
|-
 
|-
| title="Attribute" | gn:background_checked
+
| title="Attribute" | <code>gn:background_checked</code>
 
| title="Description" | Represents a background of <code>true</code> state
 
| title="Description" | Represents a background of <code>true</code> state
 
Can be
 
Can be
 
* <code>@drawable</code>
 
* <code>@drawable</code>
 
|-
 
|-
| title="Attribute" | background_unchecked
+
| title="Attribute" | <code>background_unchecked</code>
 
| title="Description" | Represents a background of <code>false</code> state
 
| title="Description" | Represents a background of <code>false</code> state
 
Can be
 
Can be

Revision as of 13:05, 12 July 2017

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