title: How to add dividers and spaces between items in RecyclerView
body: <p>This is an example of how it could have been done previously in the <code>ListView</code> class, using the <strong>divider</strong> and <strong>dividerHeight</strong> parameters:</p>
  <pre><code>&lt;ListView
      android:id=&quot;@+id/activity_home_list_view&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:divider=&quot;@android:color/transparent&quot;
      android:dividerHeight=&quot;8dp&quot;/&gt;
  </code></pre>
  <p>However, I don't see such possibility in the <code>RecyclerView</code> class.</p>
  <pre><code>&lt;android.support.v7.widget.RecyclerView
      android:id=&quot;@+id/activity_home_recycler_view&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:scrollbars=&quot;vertical&quot;/&gt;
  </code></pre>
  <p>In that case, is it ok to define margins and/or add a custom divider view directly into a list item's layout or is there a better way to achieve my goal?</p>