From wiki.ginstr.com
Jump to: navigation, search
(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...")
 
(Events)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div>
 
<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div>
 +
<span STYLE="font-size: xx-large"><code>GnRadioGroup</code></span>
 
[[Category:Widget_Library]]
 
[[Category:Widget_Library]]
;Inherited classes: <code>[http://developer.android.com/reference/android/view/View.html View]</code>
 
;Android class type: <code>[http://developer.android.com/reference/android/widget/RadioGroup.html RadioGroup]</code>
 
;Child elements: <code>[http://developer.android.com/reference/android/widget/RadioButton.html RadioButton]</code>
 
;Widget XML tag: <code><com.ginstr.widgets.GnRadioGroup></code>
 
  
 +
;Widget XML tag
 +
: <code><com.ginstr.widgets.GnRadioGroup></code>
  
<code>[[GnRadioGroup]]</code> is a container for <code>[[GnRadioButton]]</code> widgets.
+
;Description
 +
: <code>[[GnRadioGroup]]</code> is a container for <code>[[GnRadioButton]]</code> widgets.
 +
 
 +
==XML Attributes Description==
 +
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 +
|-
 +
| title="Attribute" | <code>gn:dataType</code>
 +
| title="Description" | Defines [[Datatypes|datatype]] of widget
 +
|}
 +
 
 +
==Events==
 +
: <code>[[gn:act_setClick]]</code>
 +
: <code>[[gn:act_setLongClick]]</code>
 +
 
 +
==Data types==
 +
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 +
|-
 +
! scope="col" | Input
 +
|-
 +
| title="Value" | <code>[[Datatypes#text|text]]</code>
 +
|}
 +
 
 +
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 +
|-
 +
! scope="col" | Output
 +
|-
 +
| title="Value" | <code>[[Datatypes#text|text]]</code>
 +
|}
 +
 
 +
==Example==
 +
<syntaxhighlight code="xml">
 +
<com.ginstr.widgets.GnRadioGroup
 +
  android:id="@+id/checklistReport_kitchen_walls"
 +
  android:layout_width="match_parent"
 +
  android:layout_height="wrap_content"
 +
  gn:dataType="text"
 +
  android:orientation="horizontal">
 +
    <com.ginstr.widgets.GnRadioButton
 +
      android:id="@+id/page4_wallsGood"
 +
      android:layout_width="wrap_content"
 +
      android:layout_height="wrap_content"
 +
      android:text="@string/page4_wallsGood" />
 +
 
 +
    <com.ginstr.widgets.GnRadioButton
 +
      android:id="@+id/page4_wallsFair"
 +
      android:layout_width="wrap_content"
 +
      android:layout_height="wrap_content"
 +
      android:text="@string/page4_wallsFair"/>
 +
 
 +
    <com.ginstr.widgets.GnRadioButton
 +
      android:id="@+id/page4_wallsPoor"
 +
      android:layout_width="wrap_content"
 +
      android:layout_height="wrap_content"
 +
      android:text="@string/page4_wallsPoor"/>
 +
</com.ginstr.widgets.GnRadioGroup>
 +
</syntaxhighlight>

Latest revision as of 10:44, 8 August 2019

GnRadioGroup

Widget XML tag
<com.ginstr.widgets.GnRadioGroup>
Description
GnRadioGroup is a container for GnRadioButton widgets.

XML Attributes Description

gn:dataType Defines datatype of widget

Events

gn:act_setClick
gn:act_setLongClick

Data types

Input
text
Output
text

Example

<com.ginstr.widgets.GnRadioGroup 
  android:id="@+id/checklistReport_kitchen_walls" 
  android:layout_width="match_parent" 
  android:layout_height="wrap_content" 
  gn:dataType="text"
  android:orientation="horizontal">
    <com.ginstr.widgets.GnRadioButton
      android:id="@+id/page4_wallsGood" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:text="@string/page4_wallsGood" />

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

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