title: Remove scroll in Listview
body: <p>There are only two items in my listview and it covers half of screen but listview still shows scroll around it. I have set height to wrap_content</p>
  
  <p><a href="https://i.stack.imgur.com/YcoFw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YcoFw.jpg" alt="enter image description here"></a></p>
  
  <p>layout code is below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical" &gt;
      &lt;ListView
          android:id="@+id/listLikeWhatsapp"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_margin="10dp"
          android:divider="@android:color/transparent"
          android:dividerHeight="10.0sp"
          /&gt;    
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I don't want scroll to appear on listview because it will have only two items and there is no need to show. I am not sure what is causing scroll to appear.</p>
  
  <p>Any help would be highly appreciated.</p>
  
  <p>Thanking you in advance</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Here is my row item xml :</p>
  
  <pre><code>&lt;RelativeLayout 
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:padding="10dp"
  
      android:background="@drawable/roundedshape"
      android:alpha="0.7"&gt;
  
      &lt;ImageView
          android:id="@+id/icon"
          android:layout_width="50dp"
          android:layout_height="50dp"
          android:contentDescription="desc"
          android:paddingLeft="10dp"
          android:paddingRight="10dp"
          android:src="@drawable/ic_insert_emoticon_black_48dp"
  
          /&gt;
  
  
      &lt;TextView
          android:id="@+id/title"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="10dp"
          android:layout_toRightOf="@+id/icon"
          android:paddingBottom="5dp"
          android:text="Assignments"
          android:textStyle="bold"
          android:textSize="18sp"
          android:textColor="#000"/&gt;
  
      &lt;TextView
          android:id="@+id/last_date"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/title"
          android:layout_below="@+id/title"
          android:text="Last Update : 01-01-2017"
          android:textSize="13sp"
          android:textColor="#696969"/&gt;
  
  
  
      &lt;TextView
          android:id="@+id/unread_count"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignBaseline="@+id/title"
          android:layout_alignBottom="@+id/title"
          android:layout_alignParentRight="true"
          android:text="04"
          android:textSize="12sp"
          android:background="@drawable/shape_circular"
          android:padding="5dp"
          android:textColor="#FFF"
          android:textStyle="bold"
          android:layout_marginRight="5dp"
          /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>