Android
android.widget
public abstract class

android.widget.BaseAdapter

java.lang.Object
android.widget.BaseAdapter ListAdapter SpinnerAdapter
Known Direct Subclasses
Known Indirect Subclasses

Summary

Constants inherited from interface android.widget.Adapter

Public Constructors

            BaseAdapter()

Public Methods

          boolean  areAllItemsEnabled()
Are all items in this ListAdapter enabled? If yes it means all items are selectable and clickable.
          View  getDropDownView(int position, View convertView, ViewGroup parent)

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

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

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

          boolean  hasStableIds()
Indicated whether the item ids are stable across changes to the underlying data.
          boolean  isEmpty()
          boolean  isEnabled(int position)
Returns true if the item at the specified position is not a separator.
          void  notifyDataSetChanged()
          void  notifyDataSetInvalidated()
          void  registerDataSetObserver(DataSetObserver observer)
Register an observer that is called when changes happen to the data used by this adapter.
          void  unregisterDataSetObserver(DataSetObserver observer)
Unregister an observer that has previously been registered with this adapter via registerDataSetObserver(DataSetObserver).
Methods inherited from class java.lang.Object
Methods inherited from interface android.widget.Adapter
Methods inherited from interface android.widget.ListAdapter
Methods inherited from interface android.widget.SpinnerAdapter

Details

Public Constructors

public BaseAdapter()

Public Methods

public boolean areAllItemsEnabled()

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

public View getDropDownView(int position, View convertView, ViewGroup parent)

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

public int getItemViewType(int position)

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

public int getViewTypeCount()

Returns the number of types of Views that will be created by getView(int, View, ViewGroup). Each type represents a set of views that can be converted in getView(int, View, ViewGroup). If the adapter always returns the same type of View for all items, this method should return 1.

This method will only be called when when the adapter is set on the the AdapterView.

public boolean hasStableIds()

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

public boolean isEmpty()

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).

public void notifyDataSetChanged()

public void notifyDataSetInvalidated()

public void registerDataSetObserver(DataSetObserver observer)

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

public void unregisterDataSetObserver(DataSetObserver observer)

Unregister an observer that has previously been registered with this adapter via registerDataSetObserver(DataSetObserver).
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56