public interface

ListAdapter

implements Adapter
android.widget.ListAdapter
Known Indirect Subclasses

Class Overview

Extended Adapter that is the bridge between a ListView and the data that backs the list. Frequently that data comes from a Cursor, but that is not required. The ListView can display any data provided that it is wrapped in a ListAdapter.

Summary

[Expand]
Inherited Constants
From interface android.widget.Adapter
Public Methods
abstract boolean areAllItemsEnabled()
Are all items in this ListAdapter enabled? If yes it means all items are selectable and clickable.
abstract boolean isEnabled(int position)
Returns true if the item at the specified position is not a separator.
[Expand]
Inherited Methods
From interface android.widget.Adapter

Public Methods

public abstract boolean areAllItemsEnabled ()

Since: API Level 1

Are all items in this ListAdapter enabled? If yes it means all items are selectable and clickable.

Returns
  • True if all items are enabled

public abstract boolean isEnabled (int position)

Since: API Level 1

Returns true if the item at the specified position is not a separator. (A separator is a non-selectable, non-clickable item). The result is unspecified if position is invalid. An ArrayIndexOutOfBoundsException should be thrown in that case for fast failure.

Parameters
position Index of the item
Returns
  • True if the item is not a separator