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,853
  • 1
  • 18
  • 22
LeadBox4
  • 83
  • 2
  • 11

0 Answers0