VegaLayoutManager icon indicating copy to clipboard operation
VegaLayoutManager copied to clipboard

Problems with space between items.

Open davidmarinangeli opened this issue 6 years ago • 2 comments

Hello, thanks for this spectacular library.

I have a problem with my RecyclerView: the linear layout manager works fine but as soon as I try yours, I have this problem (Photos: https://photos.app.goo.gl/KB84ASKxTwdrZkVH2 )

Is there a way to fix it?

As you can see, there is A LOT of space between some items and the last doesn't have the little textview in the bottom of the card.

Thanks

davidmarinangeli avatar Jan 31 '18 22:01 davidmarinangeli

yeah, it's a bug. in your code, r u using decoration to make the space?

xmuSistone avatar Feb 01 '18 00:02 xmuSistone

Nope, here is item's XML: GitHub. The "favourite sport" textview above the CardView appears only in specific cases.

The Recylcerview is set using:

adapter = new MainAdapter(getContext()); recyclerView = rootView.findViewById(R.id.main_contenitore); recyclerView.setLayoutManager(new VegaLayoutManager()); recyclerView.setAdapter(adapter); recyclerView.setNestedScrollingEnabled(false);

davidmarinangeli avatar Feb 01 '18 08:02 davidmarinangeli