parse-community / ParseUI-Android

ParseUI contains user interface libraries for building apps with the Parse Android SDK.
Other
592 stars 323 forks source link

RecyclerView QueryAdapter + Example #72

Closed lukas1994 closed 8 years ago

lukas1994 commented 9 years ago

added ParseQueryRecyclerViewAdapter (similar to ParseQueryAdapter) simple example

lukas1994 commented 9 years ago

I saw that we also don't have an example for the ListView query adapter. Should we add one or are we deprecating ParseQueryAdapter?

grantland commented 9 years ago

Do we really want to keep the same API design as ParseQueryAdapter? I thought it had some issues with the current API design.

Some things that might make this design a bit better like converting void loadObjects() to Task<Void> loadObjectsInBackground()

lukas1994 commented 9 years ago

I was thinking about keeping the API as similar as possible to the old adapter so that's easy for people to update their apps. Currently, we can't use Tasks (see https://github.com/ParsePlatform/Parse-SDK-Android/issues/6).

grantland commented 9 years ago

We can't use ParseQuery Tasks APIs, but we can still return Tasks by utilizing TaskCompletionSources.