Android Guides | Samples

Android.Widget.IAdapter

An Adapter object acts as a bridge between an AdapterView and the underlying data for that view.

See Also: IAdapter

Syntax

[Android.Runtime.Register("android/widget/Adapter", "", "Android.Widget.IAdapterInvoker")]
public interface IAdapter : IJavaObject, IDisposable

Remarks

An Adapter object acts as a bridge between an AdapterView and the underlying data for that view. The Adapter provides access to the data items. The Adapter is also responsible for making a View for each item in the data set.

See Also

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

Public Properties

[read-only]
CountInt32. How many items are in the data set represented by this Adapter.
[read-only]
HasStableIdsBoolean. Indicates whether the item ids are stable across changes to the underlying data.
[read-only]
IsEmptyBoolean.
[read-only]
ViewTypeCountInt32.

Public Methods

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.
RegisterDataSetObserver(DataSetObserver)
Register an observer that is called when changes happen to the data used by this adapter.
UnregisterDataSetObserver(DataSetObserver)
Unregister an observer that has previously been registered with this adapter via Adapter.registerDataSetObserver(android.database.DataSetObserver).