title: Android: Add divider between items in RecyclerView
body: <p>I am using <code>RecyclerView</code> with rounded corner, to make it rounded corner I used below XML:</p>
  
  <p><strong>view_rounded.xml:-</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="rectangle"&gt;
      &lt;solid android:color="#008f8471"/&gt;
      &lt;stroke android:width="2dp" android:color="#ffffff" /&gt;
      &lt;corners android:radius="10dp"/&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p><strong>fragment_main.xml:-</strong></p>
  
  <pre><code>&lt;android.support.v7.widget.RecyclerView
      android:id="@+id/recycler_view"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@drawable/view_rounded"/&gt;
  </code></pre>
  
  <p><strong>adapter_main.xml:-</strong></p>
  
  
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/LinearLayout1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical"&gt;
  
      &lt;TextView
          android:id="@+id/textTitle"
          style="@style/AppTheme.ListTextView"
          /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>style.xml:-</strong></p>
  
  <pre><code>&lt;style name="AppTheme.ListTextView" parent="android:Widget.Material.TextView"&gt;
    &lt;item name="android:gravity"&gt;left&lt;/item&gt;
    &lt;item name="android:layout_width"&gt;match_parent&lt;/item&gt;
    &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
    &lt;item name="android:textAllCaps"&gt;false&lt;/item&gt;
    &lt;item name="android:padding"&gt;10dp&lt;/item&gt;
    &lt;item name="android:textAppearance"&gt;@android:style/TextAppearance.DeviceDefault.Medium&lt;/item&gt;
    &lt;item name="android:textColor"&gt;@color/tabsScrollColor&lt;/item&gt; 
    &lt;item name="android:textStyle"&gt;bold&lt;/item&gt; 
  &lt;/style&gt;
  </code></pre>
  
  <p><strong>Getting</strong> (without item separator):</p>
  
  <p><img src="https://i.stack.imgur.com/ItsKm.jpg" alt="enter image description here"></p>
  
  <p><strong>Required</strong> (with item separator):</p>
  
  <p><img src="https://i.stack.imgur.com/Hjnfw.png" alt="enter image description here"></p>