Recycler View Not Showing
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);
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.