You should return
the size
of your data
ArrayList in getItemCount()
Use this:
@Override
public int getItemCount() {
return data.size();
}
Instead of this:
@Override
public int getItemCount() {
return 0;
}
More Related Contents:
- Custom Listview/Recyclerview
- Disable only one from the list Recyclerview in android [closed]
- How to filter a RecyclerView with a SearchView
- How to implement endless list with RecyclerView?
- How to use RecyclerView inside NestedScrollView?
- How to properly highlight selected item on RecyclerView?
- RecyclerView horizontal scroll snap in center
- Should we use RecyclerView to replace ListView? [closed]
- How can I make sticky headers in RecyclerView? (Without external lib)
- match_parent width does not work in RecyclerView
- Android Recyclerview vs ListView with Viewholder
- How do I create a circular (endless) RecyclerView?
- How to add a fast-scroller to the RecyclerView
- Drag and drop items in RecyclerView with GridLayoutManager
- No good example about RecyclerView and StaggeredGridLayoutManager in Android Docs
- How to add Android Support v7 libraries in eclipse?
- Endless RecyclerView with ProgressBar for pagination
- Best way to update data with a RecyclerView adapter [duplicate]
- How to set RecyclerView app:layoutManager=”” from XML?
- I want my RecyclerView to not recycle some items
- how to highlight the selected Item of Recycler View?
- RecyclerView is cutting off the last item
- Remove all items from RecyclerView
- How to put RecyclerView inside NestedScrollView?
- Recyclerview Adapter and Glide – same image every 4-5 rows
- How to Overlap items in LinearLayoutManager – RecyclerView (like stacking cards)
- RecyclerView blinking after notifyDatasetChanged()
- onCheckedChanged called automatically
- Divide elements on groups in RecyclerView
- GridLayoutManager – how to auto fit columns?