Skip to content
Mengyan Wang edited this page Oct 2, 2015 · 3 revisions

Overview

ParseQueryAdapter is an ListAdapter implementation powered by ParseQuery. It provides a layer of abstraction and allows you to easily display data from one of your Parse classes in your ListAdapterView of choice.

Usage

  1. Import and config Parse as described in README.md.

  2. Instantiate a ParseQueryAdapter and custom it as necessary.

    // Initialize a ParseQueryAdapter
    ParseQueryAdapter<ParseObject> adapter = new ParseQueryAdapter<ParseObject>(this, "Instrument");
    // Custom ParseQueryAdapter, for all ParseQueryAdapter setting please check our doc
    adapter.setTextKey("name");
    adapter.setImageKey("photo");
  3. Set the new Adapter on your AdapterView with setAdapter().

    ListView listView = (ListView) findViewById(R.id.listview);
    listView.setAdapter(adapter);

Documentation

For complete details about this library project, please see our documentation on the Parse website.

Clone this wiki locally