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
  • 26,829
  • 13
  • 75
  • 94
amanda45
  • 445
  • 10
  • 27

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,235
  • 2
  • 35
  • 81