WrapperListAdapter


public interface WrapperListAdapter
implements ListAdapter

android.widget.WrapperListAdapter
HeaderViewListAdapter ListAdapter used when a ListView has header views. 


List adapter that wraps another list adapter. The wrapped adapter can be retrieved by calling getWrappedAdapter().

See also:

Summary

Inherited constants

int IGNORE_ITEM_VIEW_TYPE

An item view type that causes the AdapterView to ignore the item view.

int NO_SELECTION

Public methods

abstract ListAdapter getWrappedAdapter()

Returns the adapter wrapped by this list adapter.

Inherited methods

abstract boolean areAllItemsEnabled()

Indicates whether all the items in this adapter are enabled.

abstract boolean isEnabled(int position)

Returns true if the item at the specified position is not a separator.

default CharSequence[] getAutofillOptions()

Gets a string representation of the adapter data that can help AutofillService autofill the view backed by the adapter.

abstract int getCount()

How many items are in the data set represented by this Adapter.

abstract Object getItem(int position)

Get the data item associated with the specified position in the data set.

abstract long getItemId(int position)

Get the row id associated with the specified position in the list.

abstract int getItemViewType(int position)

Get the type of View that will be created by getView(int, View, ViewGroup) for the specified item.

abstract View getView(int position, View convertView, ViewGroup parent)

Get a View that displays the data at the specified position in the data set.

abstract int getViewTypeCount()

Returns the number of types of Views that will be created by getView(int, View, ViewGroup).

abstract boolean hasStableIds()

Indicates whether the item ids are stable across changes to the underlying data.

abstract boolean isEmpty()
abstract void registerDataSetObserver(DataSetObserver observer)

Register an observer that is called when changes happen to the data used by this adapter.

abstract void unregisterDataSetObserver(DataSetObserver observer)

Unregister an observer that has previously been registered with this adapter via registerDataSetObserver(DataSetObserver).

Public methods

getWrappedAdapter

Added in API level 1
public abstract ListAdapter getWrappedAdapter ()

Returns the adapter wrapped by this list adapter.

Returns
ListAdapter The ListAdapter wrapped by this adapter.