From wiki.ginstr.com
Jump to: navigation, search

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>