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.
Asked
Active
Viewed 64 times
1
-
Short answer is that there is some XML resource being overridden when you import the design library – OneCricketeer Mar 30 '16 at 03:25
-
is your `RecyclerView` wrap content – N J Mar 30 '16 at 03:52
-
try this lib.. compile 'com.android.support:design:23.1.1' – Muhammad Waleed Mar 30 '16 at 03:59
-
Check this: http://stackoverflow.com/questions/35728179/recyclerview-items-with-big-empty-space-after-23-2-0 – Gabriele Mariotti Mar 31 '16 at 15:34
1 Answers
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