VegaLayoutManager
VegaLayoutManager copied to clipboard
Problems with space between items.
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
yeah, it's a bug. in your code, r u using decoration to make the space?
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);