Android.Widget.AdapterView Members

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

See Also: Inherited members from Android.Views.ViewGroup

Public Constructors

Protected Constructors

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

Public Fields

const
InvalidPositionint (-1). Represents an invalid position.
const
InvalidRowIdlong (-9223372036854775808). Represents an empty or invalid row id
const
ItemViewTypeHeaderOrFooterint (-2). The item view type returned by Adapter.getItemViewType(int) when the item is a header or footer.
const
ItemViewTypeIgnoreint (-1). The item view type returned by Adapter.getItemViewType(int) when the adapter does not want the item's view recycled.

Public Properties

[read-only]
Countint.
EmptyViewAndroid.Views.View. When the current adapter is empty, the AdapterView can display a special view called the empty view.
[read-only]
FirstVisiblePositionint. Returns the position within the adapter's data set for the first item displayed on screen.
[read-only]
LastVisiblePositionint. Returns the position within the adapter's data set for the last item displayed on screen.
OnItemClickListenerAdapterView.IOnItemClickListener.
OnItemLongClickListenerAdapterView.IOnItemLongClickListener.
OnItemSelectedListenerAdapterView.IOnItemSelectedListener.
[read-only]
SelectedItemJava.Lang.Object.
[read-only]
SelectedItemIdlong.
[read-only]
SelectedItemPositionint. Return the position of the currently selected item within the adapter's data set
[read-only]
abstract
SelectedViewAndroid.Views.View.

Protected Properties

abstract
RawAdapterJava.Lang.Object. Returns the adapter currently associated with this widget.
[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

GetItemAtPosition(int) : Java.Lang.Object
Gets the data associated with the specified position in the list.
GetItemIdAtPosition(int) : long
GetPositionForView(Android.Views.View) : int
Get the position within the adapter's data set for the view, where view is a an adapter item or a descendant of an adapter item.
PerformItemClick(Android.Views.View, int, long) : bool
Call the OnItemClickListener, if it is defined.
abstract
SetSelection(int)
Sets the currently selected item.

Protected Methods

override
OnLayout(bool, int, int, int, int)
Called from layout when this view should assign a size and position to each of its children.

Public Events

ItemClickDocumentation for this section has not yet been entered.
ItemLongClickDocumentation for this section has not yet been entered.
ItemSelectedDocumentation for this section has not yet been entered.
ItemSelectionClearedDocumentation for this section has not yet been entered.
NothingSelectedDocumentation for this section has not yet been entered.