IT. Expert System.

Android Reference

SimpleCursorAdapter


android.support.v4.widget

Class SimpleCursorAdapter

  • All Implemented Interfaces:
    Adapter, Filterable, ListAdapter, SpinnerAdapter


    public class SimpleCursorAdapter
    extends ResourceCursorAdapter
    Static library support version of the framework's SimpleCursorAdapter. 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.
    • Field Detail

      • mFrom

        protected int[] mFrom
        A list of columns containing the data to bind to the UI. This field should be made private, so it is hidden from the SDK.
      • mTo

        protected int[] mTo
        A list of View ids representing the views to which the data must be bound. This field should be made private, so it is hidden from the SDK.
    • Constructor Detail

      • SimpleCursorAdapter

        @Deprecated
        public SimpleCursorAdapter(Context context,
                                      int layout,
                                      Cursor c,
                                      String[] from,
                                      int[] to)
        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.
      • SimpleCursorAdapter

        public SimpleCursorAdapter(Context context,
                           int layout,
                           Cursor c,
                           String[] from,
                           int[] to,
                           int flags)
        Standard 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. The layout file should include at least those named views defined in "to"
        c - The database cursor. Can be null if the cursor is not available yet.
        from - A list of column names representing the data to bind to the UI. Can be null if the cursor is not available yet.
        to - The views that should display column in the "from" parameter. These should all be TextViews. The first N views in this list are given the values of the first N columns in the from parameter. Can be null if the cursor is not available yet.
        flags - Flags used to determine the behavior of the adapter, as per CursorAdapter.CursorAdapter(Context, Cursor, int).


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: 86 / 158782836. Delta: 0.04141 с