- 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