Revision as of 17:31, 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...")
- Widget XML tag
<com.ginstr.widgets.GnButton>
GnButton
inherits regular Android Button
widget.
It can be pressed or clicked by the user to perform an action.
XML Attributes Description
Attribute | Description |
---|---|
gn:buttonState
|
Represents button state (true /false )
|
gn:background_checked
|
Represents a background of true state
|
gn:background_unchecked
|
Represents a background of false state
|
gn:buttonState
Represents button state
(Boolean) values = true
, false
gn:background_checked
Defines image resource to be shown for true
state
(String) value = resource pointer i.e. @drawable/button_red
or patch 9 resource pointer @drawable/button_red.9
gn:background_unchecked
Defines image resource to be shown for false
state
(String) value = resource pointer i.e. @drawable/button_red
or patch 9 resource pointer @drawable/button_red.9