From wiki.ginstr.com
Revision as of 13:07, 12 July 2017 by Mark (talk | contribs) (formatting)
Jump to: navigation, search

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

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