title: Add margins to divider in RecyclerView
body: <p>i am building an android app which is using <code>RecyclerView</code>. I want to add dividers to <code>RecyclerView</code>, which I did using this code:</p>
  
  <pre><code>DividerItemDecoration dividerItemDecoration = new DividerItemDecoration(recyclerView.getContext(), linearLayoutManager.getOrientation());
  recyclerView.addItemDecoration(dividerItemDecoration);
  </code></pre>
  
  <p>So far everything works fine. However, the divider is taking the size of full screen and I want to add margins to it. Is there any way that I can add margins to the divider using a method that will add some space to the rectangle drawn and not by creating a custom drawable shape with margins and add it to the <code>RecyclerView</code>?</p>