Android
android.widget
public interface

android.widget.ListAdapter

android.widget.ListAdapter Adapter

The ListAdapter interface acts as a 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.

Known Indirect Subclasses

Summary

Constants inherited from interface android.widget.Adapter

Public Methods

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

Details

Public Methods

public boolean areAllItemsEnabled()

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 boolean isEnabled(int position)

Returns true if the item at the specified position is not a separator. (A separator is a non-selectable, non-clickable item).

Parameters

position Index of the item

Returns

  • True if the item is not a separator
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48