IT. Expert System.

Android Reference

ResourceCursorAdapter


android.widget

Class ResourceCursorAdapter

    • Constructor Detail

      • ResourceCursorAdapter

        @Deprecated
        public ResourceCursorAdapter(Context context,
                                        int layout,
                                        Cursor c)
        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 LoaderManager with a 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.
      • ResourceCursorAdapter

        public ResourceCursorAdapter(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, CursorAdapter.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.
      • ResourceCursorAdapter

        public ResourceCursorAdapter(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).
    • Method Detail

      • newDropDownView

        public View newDropDownView(Context context,
                           Cursor cursor,
                           ViewGroup parent)
        Description copied from class: CursorAdapter
        Makes a new drop down view to hold the data pointed to by cursor.
        Overrides:
        newDropDownView in class CursorAdapter
        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
        Returns:
        the newly created view.
      • setViewResource

        public void setViewResource(int layout)

        Sets the layout resource of the item views.

        Parameters:
        layout - the layout resources used to create item views
      • setDropDownViewResource

        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


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2700 / . Delta: 0.03059 с