flexbox-layout
flexbox-layout copied to clipboard
Recyclerview with FlexboxLayoutManager cuts the background image at end
Using implementation 'com.google.android:flexbox:1.1.0' with andoidx I need to shoy dynamic number of box in my recyclerview and selected ones should have different backgrounds. However, for first time load or adding new items in layout cuts from the end and not shown fully.
FlexboxLayoutManager layoutManager2 = new FlexboxLayoutManager(getContext());
layoutManager2.setFlexDirection(FlexDirection.ROW);
layoutManager2.setFlexWrap(FlexWrap.WRAP);
layoutManager2.setJustifyContent(JustifyContent.FLEX_START);
layoutManager2.setAlignItems(AlignItems.FLEX_START);
tasks_recyclerView.setLayoutManager(layoutManager2);
I can attach screenshot for more clarification but not getting that option.
-
[x ] I have searched existing issues and confirmed this is not a duplicate
Issues and steps to reproduce
Please replace this with steps to reproduce your issue.
Expected behavior
Dynamic number of row and column in recyclerview
Version of the flexbox library
com.google.android:flexbox:1.1.0
Link to code
Please link to the code we can use to reproduce this issue. A complete project we can build/run is preferred, if you can't provide one, please show us relevant code
did u find out the solution for the problem? @vym421