title: Put a border around each row in a ListView
body: <p>I have searched quite a lot on it already here and have implemented the common solution. What I want is something like this (Red border around listview row items) :</p>
  
  <p><img src="https://i.stack.imgur.com/3PlRy.png" alt="enter image description here"></p>
  
  <p>What I am getting is this (red border only at the top is visible) :</p>
  
  <p><img src="https://i.stack.imgur.com/6uA6e.png" alt="enter image description here"></p>
  
  <p>Here is the implementation:</p>
  
  <p><strong>ListView.xml</strong></p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:background="@color/gray"
   android:paddingTop="1dp" &gt;
  
   &lt;android.support.v4.widget.SwipeRefreshLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/swipe_container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
    &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingRight="17dp"
      android:paddingTop="5dp"
      android:paddingLeft="17dp"&gt;
  
    &lt;ListView
      android:id="@+id/lv_feeds"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:divider="@android:color/transparent"
      android:dividerHeight="5.0sp"
      android:scrollbars="none"&gt;
    &lt;/ListView&gt;
    &lt;/RelativeLayout&gt;
   &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p><strong>row_listview.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical" android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@drawable/border"&gt;
  
  .....
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>border.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="@color/white" /&gt;
   &lt;stroke android:width="12dp" android:color="@color/app_red"/&gt;
  
  &lt;/shape&gt;
  </code></pre>