WHAT IS CURSOR ADAPTERS IN ANDROID

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 480  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is cursor Adapters in Android

    Android provides adapter classes specifically to display data from an SQLite database query. There is SimpleCursorAdapter class, which is more simpler and you cannot use your own custom xml layout and you don't have the control of the layout. In order to use custom xml layout, Android provides CursorAdapter.

    A CursorAdapter makes it easy to use when the resource of a listview is coming from database and you can have more control over the binding of data values to layout controls. In the newView() method, you simply inflate the view and return it. In the bindView() method, you set the elements of your view.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!