From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
(Events)
 
(3 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| title="Attribute" | <code>gn:background_checked</code>
+
| title="Attribute" | <code>gn:backgroundChecked</code>
 
| title="Description" | Represents a background of checked <code>[[GnRadioButton]]</code>
 
| title="Description" | Represents a background of checked <code>[[GnRadioButton]]</code>
  
Line 21: Line 21:
 
* <code>@drawable</code>
 
* <code>@drawable</code>
 
|-
 
|-
| title="Attribute" | <code>gn:background_unchecked</code>
+
| title="Attribute" | <code>gn:backgroundUnchecked</code>
 
| title="Description" | Represents a background of unchecked <code>[[GnRadioButton]]</code>
 
| title="Description" | Represents a background of unchecked <code>[[GnRadioButton]]</code>
  
Line 27: Line 27:
 
* <code>@drawable</code>
 
* <code>@drawable</code>
 
|}
 
|}
 +
 +
==Events==
 +
: <code>[[gn:act_setClick]]</code>
 +
: <code>[[gn:act_setLongClick]]</code>
 +
: <code>[[gn:act_setRadioCheck]]</code>
  
 
==Example==
 
==Example==

Latest revision as of 10:48, 8 August 2019

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:backgroundChecked Represents a background of checked GnRadioButton

Can be

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

Can be

  • @drawable

Events

gn:act_setClick
gn:act_setLongClick
gn:act_setRadioCheck

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"/>