RecyclerView
is nothing more than an improved, more modular and extensible version of the AbsListView
class. It provides a better API for recycling Views, and provides a way to create all sorts of list views with the same API's - vertical, horizontal, grid, staggered grid, and so on. Loading images is not at all part of this API.
Therefore, loading images into it requires you to do exactly the same as you did before. For example, using Picasso:
@Override
public void onBindViewHolder(final MyViewHolder myViewHolder, final int i) {
Picasso.withContext(mContext).load(myImageUrl).into(myViewHolder.imageView);
}
In fact, coming back to your point:
RecyclerView is Android improving list view, so that we can get smoother scrolling of large lists of large images
I highly doubt that performance will increase if you already implemented the ListAdapter
the right way: using ViewHolder
classes, and properly reuse the convertView
. The RecyclerView
ships these optimizations by default, so you don't have to anymore.
RecyclerView
has been available for ~48 hours and cannot be used by most developers at the present time (it's only in AAR format), you will find few people who have used it. Moreover,RecyclerView
does not download images asynchronously and prepare them for use, which is what Picasso does. What specifically are you expectingRecyclerView
to do that would eliminate the need for Picasso? – Adriannaadrianne