Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
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 ()
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.
[Expand]
Inherited Methods
From interface android.widget.Adapter

Public Methods

public abstract boolean areAllItemsEnabled ()

Added in API level 1

Indicates whether all the items in this adapter are enabled. If the value returned by this method changes over time, there is no guarantee it will take effect. If true, it means all items are selectable and clickable (there is no separator.)

Returns
  • True if all items are enabled, false otherwise.

public abstract boolean isEnabled (int position)

Added in 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