English | Site Directory

Android - An Open Handset Alliance Project

android.widget
public interface

android.widget.ListAdapter

android.widget.ListAdapter Adapter

The ListAdapter class 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  areAllItemsSelectable()
Are all items in this ListAdapter selectable?
        boolean  isSelectable(int position)
Returns true if the specified position is a separator (a non-selectable item).
Methods inherited from interface android.widget.Adapter

Details

Public Methods

public boolean areAllItemsSelectable()

Are all items in this ListAdapter selectable?

Returns

  • True if all items are selectable

public boolean isSelectable(int position)

Returns true if the specified position is a separator (a non-selectable item).

Parameters

position Index of the item

Returns

  • True is the item is a separator
Build m5-rc15i - 10 Jun 2008 13:54