I have been making an app that uses a recycler view in a navigation drawer how the contents of the recycler view have not been showing up. The view is definitely their as I
Make sure RecyclerView parent container width not set as WrapContent
I agree that you need to return the correct item number but I think you might have a problem with setting the recycler view's height to wrap_content as well. I found this link very helpful. Hope it helps.
The issue is that you are returning the item count as 0 which tells that there is no rows to show. You should return the size of the List as shown below.
@Override
public int getItemCount() {
return data.size();
}
Replace following line
mRecyclerView.setAdapter(adapter);
mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
with
mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
mRecyclerView.setAdapter(adapter);