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.