title: How to set the spacing in listview item
body: <p>I am trying to make a list view like this:
  <a href="https://i.stack.imgur.com/L4Hki.png" rel="nofollow noreferrer">Listview I want</a></p>
  
  <p>I tried the following ways:</p>
  
  <ol>
  <li><p>By setting this in the list view but it is not working  </p>
  
  <pre><code>android:divider="@android:color/transparent"
  android:dividerHeight="10.0sp"
  </code></pre></li>
  <li><p>By setting the <code>marginTop</code> in the textview layout but it is also not working.</p></li>
  </ol>
  
  <p>So some one can help me how to get the required output.</p>
  
  <p>I have tried <a href="https://stackoverflow.com/questions/15342461/margin-on-listview-items-in-android">this</a>  and
  <a href="https://stackoverflow.com/questions/4984313/spacing-between-listview-items-android">this</a>, but these are not working.</p>
  
  <p>This is my custom listview:</p>
  
  <pre><code>&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:layout_marginTop="@dimen/activity_vertical_margin"
  &gt;
  &lt;LinearLayout
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="horizontal"&gt;
  &lt;View
      android:layout_width="8dp"
      android:layout_height="wrap_content"/&gt;
  &lt;ImageView
      android:layout_width="80dp"
      android:layout_height="80dp"
      android:id="@+id/imageView"
      android:layout_margin="5dp" /&gt;
  
  &lt;TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:textAppearance="?android:attr/textAppearanceLarge"
      android:text="Large Text"
      android:id="@+id/textView"
      android:layout_margin="5dp"
      style="@style/AppTheme.Text"
      /&gt;
  &lt;View
      android:layout_width="8dp"
      android:layout_height="wrap_content"
      /&gt;
  &lt;/LinearLayout&gt;
  &lt;View
      android:layout_width="match_parent"
      android:layout_height="8dp"
      android:background="#fff"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I am getting this:</p>
  
  <p><a href="https://i.stack.imgur.com/wutGp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wutGp.jpg" alt=""></a></p>