From wiki.ginstr.com
Revision as of 15:05, 29 June 2016 by Mark (talk | contribs) (Created page with "<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div> Category:Widget_Library ;Inherited classes: <code>[http://developer.android.com/reference/android/vi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Inherited classes
View
Android class type
CheckBox
Widget XML tag
<com.ginstr.widgets.GnCheckBox>


GnCheckBox inherits regular Android CheckBox widget and is used to display data as true (checked) and false (unchecked) in two states.

GnCheckBox 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
gn:backgroundChecked Defines image resource to be shown when checkbox is checked
gn:backgroundUnchecked Defines image resource to be shown when checkbox is unchecked

gn:s_text

Displays text next to checkbox

(String) values = "some text"

gn:backgroundChecked

Defines image resource to be shown when checkbox is checked

(String) value = resource pointer i.e. @drawable/button_red or patch 9 resource pointer @drawable/button_red.9

gn:backgroundUnchecked

Defines image resource to be shown when checkbox is unchecked

(String) value = resource pointer i.e. @drawable/button_red or patch 9 resource pointer @drawable/button_red.9