1

I have a Activity where I use CardView and RecyclerView. Everything works fine. When I add compile 'com.android.support:design:23.2.0' to the gradle and run my app I get a lot of vertical spacing between my cardviews. Why is this happening.

N J
  • 27,217
  • 13
  • 76
  • 96
amanda45
  • 535
  • 10
  • 29

1 Answers1

0

Before libs 23.2.0 in RecyclerView items you should use match_parent in height.

Since 23.2.0 you should use wrap_content for height of RecyclerView items.

mohax
  • 4,435
  • 2
  • 38
  • 85