5

I am using FlexboxLayoutManager as:

FlexboxLayoutManager flexboxLayoutManager = new FlexboxLayoutManager(this);
recyclerView.setLayoutManager(flexboxLayoutManager);

Now I have to inflate items in recyclerView and if number of items taking more than 2 rows, then I have to show "Show More" option as last item in second row itself. How can I achieve this?

Each row contains different number of items, i.e. columns may vary as per items length, thats why using FlexBoxLayoutManager.

AskNilesh
  • 67,701
  • 16
  • 123
  • 163
Anupriya
  • 1,663
  • 3
  • 17
  • 28

1 Answers1

3

try it

        flexBoxLayoutManager.flexLines.size
Công Hải
  • 4,961
  • 3
  • 14
  • 20