0

My question is similar to this one, however I don't want to set margins.

Add margins to divider in RecyclerView

I'm setting the divider in a Fragment. I'm not creating a separate DividerItemDecoration class and then referencing it in a Fragment. I just have these two lines:

mRecyclerView.addItemDecoration(newDividerItemDecoration(getContext(), DividerItemDecoration.VERTICAL));

Can I modify this code somehow? Thank you in advance.

Devil10
  • 1,563
  • 1
  • 17
  • 21
LeadBox4
  • 63
  • 2
  • 11

0 Answers0