title: Background of List items is stretching more than height?
body: <p>I have a listview with a custom adapter (tile) design. Everything should work fine but the thing is that the til (listview item background) stretches too much despite me giving layout_height a fixed value. Here's the code:</p>
  
  <p>This is the xml for the custom tile. Notice the 85dp fixed height. The background drawable should NOT stretch beyond this hight?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="85dp"
      android:background="@drawable/tile_job" &gt;
  
      &lt;TextView
          android:id="@+id/title"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="9dp"
          android:layout_alignParentLeft="true"
          android:layout_alignParentTop="true"
          android:layout_marginLeft="13dp"
          android:text="Title" /&gt;
  
      &lt;TextView
          android:id="@+id/pickup"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginLeft="20dp"
          android:layout_marginTop="38dp"
          android:layout_alignLeft="@+id/title"
          android:textSize="11dp"
          android:text="Pickup Address" /&gt;
  
      &lt;TextView
          android:id="@+id/destination"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/pickup"
          android:layout_below="@+id/pickup"
          android:layout_marginTop="6dp"
          android:textSize="11dp"
          android:text="Destination Address" /&gt;
  
      &lt;TextView
          android:id="@+id/time"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_above="@+id/destination"
          android:layout_alignParentRight="true"
          android:layout_marginRight="40dp"
          android:text="Time"
          android:textSize="11dp" /&gt;
  
      &lt;TextView
          android:id="@+id/date"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/time"
          android:layout_below="@+id/time"
          android:text="Date"
          android:layout_marginTop="7dp"
          android:textSize="11dp" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Now I'm using this in a simple listview:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@drawable/app_bg" &gt;
  
      &lt;RelativeLayout
          android:id="@+id/relativeLayout1"
          android:layout_width="wrap_content"
          android:layout_height="50dp"
          android:layout_alignParentLeft="true"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:background="@drawable/strip_top" &gt;
  
          &lt;TextView
              android:id="@+id/strip_text"
              style="@style/TopStripText"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
              android:layout_centerVertical="true"
              android:text="Locate" /&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;RelativeLayout
          android:layout_width="280dp"
          android:layout_height="440dp"
          android:layout_below="@+id/relativeLayout1"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="15dp"
          android:background="@drawable/bg_booking" &gt;
  
          &lt;ListView
              android:id="@+id/activebookings"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_alignParentLeft="true"
              android:layout_alignParentTop="true" &gt;
          &lt;/ListView&gt;
      &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>What is causing the tile to overstretch vertically?</p>
  
  <p>===========</p>
  
  <p><strong>EDIT</strong>
  Here is the requested code:</p>
  
  <p>Inflation of the layout:</p>
  
  <pre><code>public class JobAdapter extends BaseAdapter
  {
      private ArrayList&lt;Job&gt; bookingArrayList;
      private LayoutInflater mInflater;
  
      public JobAdapter(Context context, ArrayList&lt;Job&gt; results)
      {
          bookingArrayList = results;
          mInflater = LayoutInflater.from(context);
      }
  
      @Override
      public int getCount()
      {
          return bookingArrayList.size();
      }
  
      @Override
      public Object getItem(int arg0)
      {
          return bookingArrayList.get(arg0);
      }
  
      @Override
      public long getItemId(int position)
      {
          return position;
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent)
      {
          ViewHolder holder;
          if (convertView == null)
          {
              convertView = mInflater.inflate(R.layout.tile_job, null);
              holder = new ViewHolder();
              holder.date = (TextView) convertView.findViewById(R.id.date);
              holder.time = (TextView) convertView.findViewById(R.id.time);
              holder.pickup = (TextView) convertView.findViewById(R.id.pickup);
              holder.destination = (TextView) convertView.findViewById(R.id.destination);
              holder.title = (TextView) convertView.findViewById(R.id.title);
  
              convertView.setTag(holder);
          }
          else
          {
              holder = (ViewHolder) convertView.getTag();
          }
  
          holder.date.setText(bookingArrayList.get(position).getDate());
          holder.time.setText(bookingArrayList.get(position).getTime());
          holder.pickup.setText(bookingArrayList.get(position).getPickup());
          holder.destination.setText(bookingArrayList.get(position).getDestination());
          holder.title.setText(bookingArrayList.get(position).getTitle());
  
          return convertView;
      }
  
      static class ViewHolder
      {
          TextView date;
          TextView time;
          TextView pickup;
          TextView destination;
          TextView title;
      }
  }
  </code></pre>