-
-
Notifications
You must be signed in to change notification settings - Fork 323
ParseQueryAdapter
Mengyan Wang edited this page Oct 2, 2015
·
3 revisions
ParseQueryAdapter
is an implementation of Adapter in the Parse Android SDK. It provides a layer of abstraction and allows you to easily display data from one of your Parse classes in your AdapterView of choice.
-
Import and config Parse as described in README.md.
-
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");
-
Set the new Adapter on your
AdapterView
withsetAdapter()
.ListView listView = (ListView) findViewById(R.id.listview); listView.setAdapter(adapter);
For complete details about this library project, please see our documentation on the Parse website.