title: How can a divider line be added in an Android RecyclerView?
body: <p>I am developing an android application where I am using <code>RecyclerView</code>. I need to add a <strong>divider</strong> in <code>RecyclerView</code>.
  I tried to add - </p>
  
  <pre><code>recyclerView.addItemDecoration(new
       DividerItemDecoration(getActivity(),
         DividerItemDecoration.VERTICAL_LIST));
  </code></pre>
  
  <p>below is my xml code - </p>
  
  <pre><code>   &lt;android.support.v7.widget.RecyclerView
      android:id="@+id/drawerList"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="15dp"
      /&gt;
  </code></pre>