From wiki.ginstr.com
Jump to: navigation, search
(XML Attributes Description)
(Events)
 
(3 intermediate revisions by 2 users not shown)
Line 15: Line 15:
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| title="Attribute" | gn:groupByColumn
+
| title="Attribute" | <code>gn:groupByColumn</code>
 
| title="Description" | Column name which is used for grouping and its value will be used as group name
 
| title="Description" | Column name which is used for grouping and its value will be used as group name
 
Can be
 
Can be
 
* hardcoded
 
* hardcoded
 
|-
 
|-
| title="Attribute" | gn:data_columns_id
+
| title="Attribute" | <code>gn:data_columns_id</code>
 
| title="Description" | Column name which value will be used as child element in group
 
| title="Description" | Column name which value will be used as child element in group
 
|}
 
|}
 +
 +
==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#rows|rows]]</code>
 +
|}
 +
 +
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 +
|-
 +
! scope="col" | Output
 +
|-
 +
| title="Value" | <code>NULL</code>
 +
|}
 +
  
 
==Example==
 
==Example==

Latest revision as of 09:42, 8 August 2019

GnExpandableListView

Widget XML tag
<com.ginstr.widgets.GnExpandableListView>
Description
GnExpandableListView is used to show data in a table appearance, with additional grouping functionality.

XML Attributes Description

Attribute Description
gn:groupByColumn Column name which is used for grouping and its value will be used as group name

Can be

  • hardcoded
gn:data_columns_id Column name which value will be used as child element in group

Events

gn:act_setClick
gn:act_setLongClick

Data types

Input
rows
Output
NULL


Example

<com.ginstr.widgets.GnExpandableListView
  android:id="@+id/listResults"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:layout_gravity="center_horizontal"
  android:groupIndicator="@null"
  android:dividerHeight="0dp"
  android:listSelector="@null"
  gn:data_columns_id="meter_meterGroup"
  gn:groupByColumn="meter_economicEntity"/>