Android Guides | Samples

Android.Widget.HeaderViewListAdapter Class

ListAdapter used when a ListView has header views.

See Also: HeaderViewListAdapter

Syntax

[Android.Runtime.Register("android/widget/HeaderViewListAdapter", DoNotGenerateAcw=true)]
public class HeaderViewListAdapter : Object, IFilterable, IWrapperListAdapter, IDisposable

Remarks

ListAdapter used when a ListView has header views. This ListAdapter wraps another one and also keeps track of the header views and their associated data objects.

This is intended as a base class; you will probably not need to use this class directly in your own code.

[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.HeaderViewListAdapter are listed below.

See Also: Object

Public Constructors

Protected Constructors

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

Public Properties

[read-only]
CountInt32. How many items are in the data set represented by this Adapter.
[read-only]
FilterFilter.
[read-only]
FootersCountInt32.
[read-only]
HasStableIdsBoolean. Indicates whether the item ids are stable across changes to the underlying data.
[read-only]
HeadersCountInt32.
[read-only]
IsEmptyBoolean.
[read-only]
ViewTypeCountInt32.
[read-only]
WrappedAdapterIListAdapter. Returns the adapter wrapped by this list adapter.

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

AreAllItemsEnabled() : Boolean
Indicates whether all the items in this adapter are enabled.
GetItem(Int32) : Object
Get the data item associated with the specified position in the data set.
GetItemId(Int32) : Int64
Get the row id associated with the specified position in the list.
GetItemViewType(Int32) : Int32
Get the type of View that will be created by droid.view.View, for the specified item.
GetView(Int32, View, ViewGroup) : View
Get a View that displays the data at the specified position in the data set.
IsEnabled(Int32) : Boolean
Returns true if the item at the specified position is not a separator.
RegisterDataSetObserver(DataSetObserver)
Register an observer that is called when changes happen to the data used by this adapter.
RemoveFooter(View) : Boolean
RemoveHeader(View) : Boolean
UnregisterDataSetObserver(DataSetObserver)
Unregister an observer that has previously been registered with this adapter via Adapter.registerDataSetObserver(android.database.DataSetObserver).