From wiki.ginstr.com
Jump to: navigation, search
(XML Attributes Description)
Line 17: Line 17:
 
| title="Attribute" | gn:background_checked
 
| title="Attribute" | gn:background_checked
 
| title="Description" | Represents a background of checked <code>GnRadioButton</code>
 
| title="Description" | Represents a background of checked <code>GnRadioButton</code>
: Can be
+
 
 +
Can be
 
* <code>@drawable</code>
 
* <code>@drawable</code>
 
|-
 
|-
 
| title="Attribute" | gn:background_unchecked
 
| title="Attribute" | gn:background_unchecked
 
| title="Description" | Represents a background of unchecked <code>GnRadioButton</code>
 
| title="Description" | Represents a background of unchecked <code>GnRadioButton</code>
: Can be
+
 
 +
Can be
 
* <code>@drawable</code>
 
* <code>@drawable</code>
 
|}
 
|}

Revision as of 11:45, 27 March 2017

GnRadioButton

Widget XML tag
<com.ginstr.widgets.GnRadioButton>
Description
GnRadioButton inherits regular Android RadioButton widget and is used to display a single choice list.

XML Attributes Description

Attribute Description
gn:background_checked Represents a background of checked GnRadioButton

Can be

  • @drawable
gn:background_unchecked Represents a background of unchecked GnRadioButton

Can be

  • @drawable

Example

<com.ginstr.widgets.GnRadioButton
  android:id="@+id/page4_wallsPoor" 
  android:layout_width="wrap_content" 
  android:layout_height="wrap_content" 
  android:text="@string/page4_wallsPoor"/>