Android Guides | Samples

Android.Widget.SimpleExpandableListAdapter Class

An easy adapter to map static data to group and child views defined in an XML file.

See Also: SimpleExpandableListAdapter

Syntax

[Android.Runtime.Register("android/widget/SimpleExpandableListAdapter", DoNotGenerateAcw=true)]
public class SimpleExpandableListAdapter : BaseExpandableListAdapter

Remarks

An easy adapter to map static data to group and child views defined in an XML file. You can separately specify the data backing the group as a List of Maps. Each entry in the ArrayList corresponds to one group in the expandable list. The Maps contain the data for each row. You also specify an XML file that defines the views used to display a group, and a mapping from keys in the Map to specific views. This process is similar for a child, except it is one-level deeper so the data backing is specified as a List>, where the first List corresponds to the group of the child, the second List corresponds to the position of the child within the group, and finally the Map holds the data for that particular child.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Widget.SimpleExpandableListAdapter are listed below.

See Also: BaseExpandableListAdapter

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
override
GroupCountInt32.
[read-only]
override
HasStableIdsBoolean.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

override
GetChild(Int32, Int32) : Object
override
GetChildId(Int32, Int32) : Int64
override
GetChildrenCount(Int32) : Int32
override
GetChildView(Int32, Int32, Boolean, View, ViewGroup) : View
override
GetGroup(Int32) : Object
override
GetGroupId(Int32) : Int64
override
GetGroupView(Int32, Boolean, View, ViewGroup) : View
override
IsChildSelectable(Int32, Int32) : Boolean
NewChildView(Boolean, ViewGroup) : View
Instantiates a new View for a child.
NewGroupView(Boolean, ViewGroup) : View
Instantiates a new View for a group.