public abstract class

ResourceDragSortCursorAdapter

extends DragSortCursorAdapter
java.lang.Object
   ↳ android.widget.BaseAdapter
     ↳ android.support.v4.widget.CursorAdapter
       ↳ com.mobeta.android.dslv.DragSortCursorAdapter
         ↳ com.mobeta.android.dslv.ResourceDragSortCursorAdapter
Known Direct Subclasses

Class Overview

Static library support version of the framework's android.widget.ResourceCursorAdapter. Used to write apps that run on platforms prior to Android 3.0. When running on Android 3.0 or above, this implementation is still used; it does not try to switch to the framework's implementation. See the framework SDK documentation for a class overview.

Summary

[Expand]
Inherited Constants
From class com.mobeta.android.dslv.DragSortCursorAdapter
From class android.support.v4.widget.CursorAdapter
From interface android.widget.Adapter
[Expand]
Inherited Fields
From class android.support.v4.widget.CursorAdapter
Public Constructors
ResourceDragSortCursorAdapter(Context context, int layout, Cursor c)
This constructor is deprecated. This option is discouraged, as it results in Cursor queries being performed on the application's UI thread and thus can cause poor responsiveness or even Application Not Responding errors. As an alternative, use android.app.LoaderManager with a android.content.CursorLoader.
ResourceDragSortCursorAdapter(Context context, int layout, Cursor c, boolean autoRequery)
Constructor with default behavior as per CursorAdapter#CursorAdapter(Context, Cursor, boolean); it is recommended you not use this, but instead #ResourceCursorAdapter(Context, int, Cursor, int).
ResourceDragSortCursorAdapter(Context context, int layout, Cursor c, int flags)
Standard constructor.
Public Methods
View newDropDownView(Context context, Cursor cursor, ViewGroup parent)
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.

void setViewResource(int layout)

Sets the layout resource of the item views.

[Expand]
Inherited Methods
From class com.mobeta.android.dslv.DragSortCursorAdapter
From class android.support.v4.widget.CursorAdapter
From class android.widget.BaseAdapter
From class java.lang.Object
From interface android.widget.Adapter
From interface android.widget.Filterable
From interface android.widget.ListAdapter
From interface android.widget.SpinnerAdapter
From interface com.mobeta.android.dslv.DragSortListView.DragListener
From interface com.mobeta.android.dslv.DragSortListView.DropListener
From interface com.mobeta.android.dslv.DragSortListView.RemoveListener

Public Constructors

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

This constructor is deprecated.
This option is discouraged, as it results in Cursor queries being performed on the application's UI thread and thus can cause poor responsiveness or even Application Not Responding errors. As an alternative, use android.app.LoaderManager with a android.content.CursorLoader.

Constructor the enables auto-requery.

Parameters
context The context where the ListView associated with this adapter is running
layout resource identifier of a layout file that defines the views for this list item. Unless you override them later, this will define both the item views and the drop down views.

public ResourceDragSortCursorAdapter (Context context, int layout, Cursor c, boolean autoRequery)

Constructor with default behavior as per CursorAdapter#CursorAdapter(Context, Cursor, boolean); it is recommended you not use this, but instead #ResourceCursorAdapter(Context, int, Cursor, int). When using this constructor, FLAG_REGISTER_CONTENT_OBSERVER will always be set.

Parameters
context The context where the ListView associated with this adapter is running
layout resource identifier of a layout file that defines the views for this list item. Unless you override them later, this will define both the item views and the drop down views.
c The cursor from which to get the data.
autoRequery If true the adapter will call requery() on the cursor whenever it changes so the most recent data is always displayed. Using true here is discouraged.

public ResourceDragSortCursorAdapter (Context context, int layout, Cursor c, int flags)

Standard constructor.

Parameters
context The context where the ListView associated with this adapter is running
layout Resource identifier of a layout file that defines the views for this list item. Unless you override them later, this will define both the item views and the drop down views.
c The cursor from which to get the data.
flags Flags used to determine the behavior of the adapter, as per CursorAdapter#CursorAdapter(Context, Cursor, int).

Public Methods

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

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

Inflates view(s) from the specified XML file.

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

public void setViewResource (int layout)

Sets the layout resource of the item views.

Parameters
layout the layout resources used to create item views