-1

I'm trying to make a Recyclerview, where i can display cards. I've followed this tutorial, wich displays exactly what I want. However this is not what's showing in my application right now.

I've tried to debug the Adapter to see if the data is Empty, but that's not the case

The classes i'm using

The activity_main i'm using

The card_view i'm using

The cardView also uses a gradient and layout for the button from the Drawable package, but those are probably not relevant.

On startup, the recyclerview is not being showed on my activity.

I expect the layout like the tutorial displays in the beginning of the video.

1 Answers1

2

Put size of your mData list in getItemCount():

@Override
public int getItemCount() {
    return mData.size();
}
Mark Rotteveel
  • 90,369
  • 161
  • 124
  • 175
Nice umang
  • 1,135
  • 6
  • 19