Android Guides | Samples

Android.Widget.IHeterogeneousExpandableList

Additional methods that when implemented make an IExpandableListAdapter take advantage of the Adapter view type mechanism.

See Also: IHeterogeneousExpandableList

Syntax

[Android.Runtime.Register("android/widget/HeterogeneousExpandableList", "", "Android.Widget.IHeterogeneousExpandableListInvoker")]
public interface IHeterogeneousExpandableList : IJavaObject, IDisposable

Remarks

Additional methods that when implemented make an IExpandableListAdapter take advantage of the Adapter view type mechanism. Lists that contain different types of group and/or child item views, should use an adapter that implements this interface. This way, the recycled views that will be provided to IExpandableListAdapter.GetGroupView(Int32,Boolean,Boolean,Boolean) and IExpandableListAdapter.GetChildView(Int32,Int32,Int32,Int32,Int32) will be of the appropriate group or child type, resulting in a more efficient reuse of the previously created views.

An IExpandableListAdapter declares it has one view type for its group items and one view type for its child items. Although adapted for most ExpandableListViews, these values should be tuned for heterogeneous ExpandableListViews.

[Android Documentation]

Requirements

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

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

Public Properties

[read-only]
ChildTypeCountInt32. This method will only be called when the adapter is set on the AdapterView.
[read-only]
GroupTypeCountInt32. This method will only be called when the adapter is set on the AdapterView.

Public Methods

GetChildType(Int32, Int32) : Int32
Get the type of child View that will be created by IExpandableListAdapter.GetChildView(Int32,Int32,Int32,Int32,Int32) for the specified child item.
GetGroupType(Int32) : Int32
Get the type of group View that will be created by IExpandableListAdapter.GetGroupView(Int32,Boolean,Boolean,Boolean) . for the specified group item.