From wiki.ginstr.com
Revision as of 17:24, 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
RadioButton
Widget XML tag
<com.ginstr.widgets.GnRadioButton>


GnRadioButton inherits regular Android RadioButton widget and is used to display a single choice list.

XML Attributes Description

Attribute Description
gn:radio_group_value Represents value which will be reported by GnRadioGroup if specific GnRadioButton is selected
gn:background_checked Represents a background of checked GnRadioButton
gn:background_unchecked Represents a background of unchecked GnRadioButton
gn:imageOnlyMode Overrides standard drawing mechanism of RadioButton and aligns drawings centered in RadioButton control

gn:radio_group_value

Represents value which will be reported by GnRadioGroup if specific GnRadioButton is selected

gn:background_checked

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:background_unchecked

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

gn:imageOnlyMode

If set to true, this attribute overrides standard drawing mechanism of RadioButton and aligns drawings centered in RadioButton control.

In default behaviour, image is shown aligned left because of RadioButton being on the right.

(Boolean) values = true, false