title: Android RelativeLayout Background Color
body: <p>For a long time I am reading posts from stackoverflow because they are very helpful and google seems to think that also. </p>
  
  <p>Since yesterday I have a problem with a row in a ListView in Android. I want to show an image and the area between the image and the bottom of the element should be filled with a grey color.</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:orientation="vertical" &gt;
  
  
      &lt;RelativeLayout
          android:id="@+id/ConversationsBadgeLayout"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:background="#c0c0c0"
          android:orientation="vertical" &gt;
  
          &lt;QuickContactBadge
              android:id="@+id/ConversationsBadge"
              android:layout_width="60dp"
              android:layout_height="60dp"
              android:layout_alignParentLeft="true"
              android:layout_alignParentTop="true" /&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;!--
      ...
      A LinearLayout with TextViews, shouldn't be interesting for this
      ...
      --&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>My Problem ist that the it seems that the inner layout only wraps the content but doesn't fill_parent. When I set for example 100dp it works but that is not what i want.</p>
  
  <p>It would be nice if you could help me with that. I tried much workarround like using LinearLayouts and TextViews but nothing worked.</p>