title: Android child view height not match parent in ListView item
body: <p>As described, my List item is a <code>FrameLayout</code>, there are two views inside.</p>
  
  <p><code>ColorView</code> is a custom view I made for show color in whole view.</p>
  
  <p>(<code>FrameLayout</code>'s height is "wrap_content")</p>
  
  <p>It seems work well on my ICS device, but doesn't work on my Android 2.2 emulator and Android 1.6 G1.</p>
  
  <p><img src="https://i.imgur.com/iOsUs.png" alt="ICS"></p>
  
  <p><img src="https://i.imgur.com/zKoGw.png" alt="Donut"></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  
      &lt;org.mariotaku.twidere.view.ColorView
          android:id="@+id/status_background"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_gravity="center"
          android:background="@drawable/ic_label_user"/&gt;
  
      &lt;RelativeLayout
          android:id="@+id/status_content"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:paddingBottom="6dp"
          android:paddingRight="6dp"
          android:paddingTop="6dp"&gt;
  
          &lt;org.mariotaku.twidere.view.RoundCorneredImageView
              android:id="@+id/profile_image"
              android:layout_width="@dimen/profile_image_size"
              android:layout_height="@dimen/profile_image_size"
              android:layout_marginLeft="6dp"
              android:scaleType="fitCenter"/&gt;
  
          &lt;TextView
              android:id="@+id/name"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentTop="true"
              android:layout_alignWithParentIfMissing="true"
              android:layout_marginLeft="6dp"
              android:layout_toLeftOf="@+id/time"
              android:layout_toRightOf="@+id/profile_image"
              android:singleLine="true"
              android:textAppearance="?android:attr/textAppearanceSmall"
              android:textColor="?android:attr/textColorPrimary"
              android:textStyle="bold"/&gt;
  
          &lt;TextView
              android:id="@+id/text"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignLeft="@+id/name"
              android:layout_alignParentRight="true"
              android:layout_alignWithParentIfMissing="true"
              android:layout_below="@+id/name"
              android:textAppearance="?android:attr/textAppearanceSmall"
              android:textColor="?android:attr/textColorSecondary"/&gt;
  
          &lt;TextView
              android:id="@+id/time"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignBaseline="@+id/name"
              android:layout_alignParentRight="true"
              android:layout_alignWithParentIfMissing="true"
              android:drawablePadding="3dp"
              android:gravity="center_vertical|right"
              android:textColor="?android:attr/textColorSecondary"/&gt;
  
          &lt;ImageView
              android:id="@+id/image_preview"
              android:layout_width="@dimen/preview_image_size"
              android:layout_height="@dimen/preview_image_size"
              android:layout_alignWithParentIfMissing="true"
              android:layout_below="@+id/text"
              android:layout_marginLeft="16dp"
              android:layout_marginTop="3dp"
              android:layout_toRightOf="@+id/profile_image"
              android:background="@drawable/image_preview_background"
              android:drawablePadding="3dp"
              android:scaleType="fitCenter"
              android:visibility="gone"/&gt;
  
          &lt;TextView
              android:id="@+id/reply_retweet_status"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignWithParentIfMissing="true"
              android:layout_below="@+id/image_preview"
              android:layout_toRightOf="@+id/profile_image"
              android:drawablePadding="3dp"
              android:paddingLeft="6dp"
              android:paddingTop="3dp"
              android:textColor="?android:attr/textColorSecondary"/&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;TextView
          android:id="@+id/list_gap_text"
          android:layout_width="wrap_content"
          android:layout_height="48dp"
          android:layout_gravity="center"
          android:gravity="center"
          android:text="@string/tap_to_load_more"
          android:textAppearance="?android:attr/textAppearanceMedium"
          android:textStyle="bold"
          android:visibility="gone"/&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>does it have any workaround or other way to solve this?</p>
  
  <p>EDIT</p>
  
  <p>code for <code>ColorView</code></p>
  
  <pre><code>package org.mariotaku.twidere.view;
  
  import android.content.Context;
  import android.graphics.Canvas;
  import android.graphics.Color;
  import android.util.AttributeSet;
  import android.view.View;
  
  public class ColorView extends View {
  
      private int mColor = Color.TRANSPARENT;
  
      public ColorView(Context context) {
          this(context, null);
      }
  
      public ColorView(Context context, AttributeSet attrs) {
          this(context, attrs, 0);
      }
  
      public ColorView(Context context, AttributeSet attrs, int defStyle) {
          super(context, attrs, defStyle);
      }
  
      public void setColor(int color) {
          mColor = color;
          invalidate();
      }
  
      @Override
      protected void onDraw(Canvas canvas) {
          super.onDraw(canvas);
          canvas.drawColor(mColor);
      }
  
  }
  </code></pre>