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
Contents
GnCheckBox
- Widget XML tag
<com.ginstr.widgets.GnCheckBox>
- Description
GnCheckBox
inherits regular AndroidCheckBox
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
|
gn:enabled
|
Changes widget state
Can be
|
gn:background_checked
|
Represents a background of true state
Can be
|
background_unchecked
|
Represents a background of false state
Can be
|
Example
<com.ginstr.widgets.GnCheckBox android:id="@+id/txtToiletServiceToiletCleaningCompletedDATA" android:layout_width="wrap_content" android:layout_height="wrap_content" android:checked="false" />