Skip to content Skip to sidebar Skip to footer

Parse RecyclerView Image Query

I am attempting to load images into a recyclerview from the Parse web service. For this I will need: A. A query which retrieves, based on criteria, images by category in the form o

Solution 1:

You can find a guide of creating queries in the documentation to ParseQuery class.

Each ParseFile has method getUrl() which lets you to push that url to some image loading library such as Picasso, Glide or UIL. This libraries provide the ways to download, display, cache and even store images on the disc.

So the way you can implement your task is to construct query with actual constraints, then call the method query.findInBackground() and in the method done() of query callback send received list to RecyclerView adapter in which inside the method onBindViewHolder() pass the image url to load to ImageView in corresponding ViewHolder


Post a Comment for "Parse RecyclerView Image Query"