Android Guides | Samples

Android.Widget.BaseAdapter Class

Common base class of common implementation for an Adapter that can be used in both ListView (by implementing the specialized IListAdapter interface) and Spinner (by implementing the specialized ISpinnerAdapter interface).

See Also: BaseAdapter

Syntax

[Android.Runtime.Register("android/widget/BaseAdapter", DoNotGenerateAcw=true)]
public abstract class BaseAdapter : Object, IListAdapter, ISpinnerAdapter, IDisposable

Remarks

Common base class of common implementation for an Adapter that can be used in both ListView (by implementing the specialized IListAdapter interface) and Spinner (by implementing the specialized ISpinnerAdapter interface).

[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.BaseAdapter 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]
abstract
CountInt32.
[read-only]
HasStableIdsBoolean. Indicates whether the item ids are stable across changes to the underlying data.
[read-only]
IsEmptyBoolean.
[read-only]
ViewTypeCountInt32.

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.
GetDropDownView(Int32, View, ViewGroup) : View
Gets a View that displays in the drop down popup the data at the specified position in the data set.
abstract
GetItem(Int32) : Object
abstract
GetItemId(Int32) : Int64
GetItemViewType(Int32) : Int32
Get the type of View that will be created by droid.view.View, for the specified item.
abstract
GetView(Int32, View, ViewGroup) : View
IsEnabled(Int32) : Boolean
Returns true if the item at the specified position is not a separator.
NotifyDataSetChanged()
Notifies the attached observers that the underlying data has been changed and any View reflecting the data set should refresh itself.
NotifyDataSetInvalidated()
Notifies the attached observers that the underlying data is no longer valid or available.
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).