RecyclerView widget was a big improvement over ListView in terms of flexibility. In this talk, I share some experience that I had when developing UIs with RecyclerView. Learn some tricks like animations, efficient data updates and more.
onBindViewHolder(RecyclerView.ViewHolder holder, int position, List payloads) { if (payloads.isEmpty()) { onBindViewHolder(holder, position); } else if (payloads.contains(LIKE)) { holder.itemView.likes.setText(item.likes); } }