English | Site Directory

Android - An Open Handset Alliance Project

android.widget
public abstract class

android.widget.ResourceCursorAdapter

java.lang.Object
android.widget.BaseAdapter Adapter GalleryAdapter ListAdapter
android.widget.CursorAdapter Filterable
android.widget.ResourceCursorAdapter

An easy adapter that creates views defined in an XML file. You can specify the XML file that defines the appearance of the views.

Known Direct Subclasses

Summary

Constants inherited from interface android.widget.Adapter
Fields inherited from class android.widget.CursorAdapter

Public Constructors

          ResourceCursorAdapter(Context context, int layout, Cursor c)
Constructor.

Public Methods

        View  newDropDownView(Context context, Cursor cursor, ViewGroup parent)
Makes a new drop down view to hold the data pointed to by cursor.
        View  newView(Context context, Cursor cursor, ViewGroup parent)
Inflates view(s) from the specified XML file.
        void  setDropDownViewResource(int dropDownLayout)

Sets the layout resource of the drop down views.

Methods inherited from class android.widget.CursorAdapter
Methods inherited from class android.widget.BaseAdapter
Methods inherited from class java.lang.Object
Methods inherited from interface android.widget.GalleryAdapter
Methods inherited from interface android.widget.ListAdapter
Methods inherited from interface android.widget.Filterable
Methods inherited from interface android.widget.SpinnerAdapter
Methods inherited from interface android.widget.Adapter

Details

Public Constructors

public ResourceCursorAdapter(Context context, int layout, Cursor c)

Constructor.

Parameters

context The context where the ListView associated with this SimpleListItemFactory is running
layout resource identifier of a layout file that defines the views for this list item.

Public Methods

public View newDropDownView(Context context, Cursor cursor, ViewGroup parent)

Makes a new drop down view to hold the data pointed to by cursor.

Parameters

context Interface to application's global information
cursor The cursor from which to get the data. The cursor is already moved to the correct position.
parent The parent to which the new view is attached to

public View newView(Context context, Cursor cursor, ViewGroup parent)

Inflates view(s) from the specified XML file.

Parameters

context Interface to application's global information
cursor The cursor from which to get the data. The cursor is already moved to the correct position.
parent The parent to which the new view is attached to

public void setDropDownViewResource(int dropDownLayout)

Sets the layout resource of the drop down views.

Parameters

dropDownLayout the layout resources used to create drop down views
Build m5-rc15i - 10 Jun 2008 13:54