title: layout_weight for RelativeLayout doesn't work
body: <p>There is the following code:</p>
  
  <pre><code>        &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="0dip"
              android:layout_weight="0.9"
              android:gravity="center"
              android:orientation="horizontal" &gt;
  
              &lt;TextView
                  android:id="@+id/activityEvaluationYesterdayValueDisplay"
                  android:layout_width="15dip"
                  android:layout_height="wrap_content"
                  android:text="0"
                  android:textAppearance="?android:attr/textAppearanceMedium"
                  android:textStyle="bold" /&gt;
  
              &lt;com.ulnda.mypsych.views.VerticalSeekBar
                  android:id="@+id/activityEvaluationYesterdayValue"
                  android:layout_width="wrap_content"
                  android:layout_height="match_parent"
                  android:layout_gravity="center"
                  android:max="10"
                  android:progress="0" /&gt;
          &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Now I need to change LinearLayout to RelativeLayout. If I do it then RelativeLayout fill the whole screen, and it's bad. I understand that RelativeLayout doesn't use layout_weight for its work. Please, tell me, how can I fix it? I've tried to make LinearLayout wrapper for RelativeLayout, but it doesn't help. </p>
  
  <p>UPDATE:</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="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="0dip"
          android:layout_weight="0.6"
          android:orientation="vertical" &gt;
  
          &lt;RelativeLayout
              android:background="#000000"
              android:layout_width="match_parent"
              android:layout_height="match_parent" &gt;
          &lt;/RelativeLayout&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  UPDATE 2: FUll code
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;TableLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent" &gt;
  
          &lt;TableRow
              android:id="@+id/tableRow1"
              android:layout_width="match_parent"
              android:layout_height="0dip"
              android:layout_weight="0.5" &gt;
  
              &lt;LinearLayout
                  android:weightSum="1.0"
                  android:layout_width="0dip"
                  android:layout_height="match_parent"
                  android:layout_weight="0.33"
                  android:orientation="vertical" &gt;
  
                  &lt;RelativeLayout
                      android:layout_width="match_parent"
                      android:layout_height="0dip"
                      android:layout_weight="0.9"&gt;
  
                      &lt;TextView
                          android:id="@+id/activityEvaluationYesterdayValueDisplay"
                          android:layout_width="15dip"
                          android:layout_height="wrap_content"
                          android:text="0"
                          android:layout_centerVertical="true"
                          android:layout_toLeftOf="@+id/activityEvaluationYesterdayValue"
                          android:textAppearance="?android:attr/textAppearanceMedium"
                          android:textStyle="bold" /&gt;
  
                      &lt;com.ulnda.mypsych.views.VerticalSeekBar
                          android:id="@+id/activityEvaluationYesterdayValue"
                          android:layout_width="wrap_content"
                          android:layout_height="match_parent"
                          android:layout_centerInParent="true"
                          android:max="10"
                          android:progress="0" /&gt;
                  &lt;/RelativeLayout&gt;
  
                  &lt;TextView
                      android:id="@+id/TextView05"
                      android:layout_width="match_parent"
                      android:layout_height="0dip"
                      android:layout_weight="0.1"
                      android:gravity="center"
                      android:text="Yesterday"
                      android:textAppearance="?android:attr/textAppearanceMedium"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dip"
                  android:layout_height="match_parent"
                  android:layout_weight="0.33"
                  android:orientation="vertical" &gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="0dip"
                      android:layout_weight="0.9"
                      android:gravity="center"
                      android:orientation="horizontal" &gt;
  
                      &lt;TextView
                          android:id="@+id/activityEvaluationTodayValueDisplay"
                          android:layout_width="20dip"
                          android:layout_height="wrap_content"
                          android:layout_gravity="center"
                          android:text="0"
                          android:textAppearance="?android:attr/textAppearanceMedium"
                          android:textStyle="bold" /&gt;
  
                      &lt;com.ulnda.mypsych.views.VerticalSeekBar
                          android:id="@+id/activityEvaluationTodayValue"
                          android:layout_width="wrap_content"
                          android:layout_height="match_parent"
                          android:max="10"
                          android:progress="0" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;TextView
                      android:id="@+id/TextView03"
                      android:layout_width="match_parent"
                      android:layout_height="0dip"
                      android:layout_weight="0.1"
                      android:gravity="center"
                      android:text="Today"
                      android:textAppearance="?android:attr/textAppearanceMedium"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dip"
                  android:layout_height="match_parent"
                  android:layout_weight="0.33"
                  android:orientation="vertical" &gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="0dip"
                      android:layout_weight="0.9"
                      android:gravity="center"
                      android:orientation="horizontal" &gt;
  
                      &lt;TextView
                          android:id="@+id/activityEvaluationTomorrowValueDisplay"
                          android:layout_width="20dip"
                          android:layout_height="wrap_content"
                          android:layout_gravity="center"
                          android:text="0"
                          android:textAppearance="?android:attr/textAppearanceMedium"
                          android:textStyle="bold" /&gt;
  
                      &lt;com.ulnda.mypsych.views.VerticalSeekBar
                          android:id="@+id/activityEvaluationTomorrowValue"
                          android:layout_width="wrap_content"
                          android:layout_height="match_parent"
                          android:max="10"
                          android:progress="0" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;TextView
                      android:id="@+id/TextView02"
                      android:layout_width="match_parent"
                      android:layout_height="0dip"
                      android:layout_weight="0.1"
                      android:gravity="center"
                      android:text="Tomorrow"
                      android:textAppearance="?android:attr/textAppearanceMedium"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/TableRow&gt;
  
          &lt;TableRow
              android:id="@+id/tableRow2"
              android:layout_width="wrap_content"
              android:layout_height="0dip"
              android:layout_weight="0.5" &gt;
  
              &lt;LinearLayout
                  android:layout_width="0dip"
                  android:layout_height="match_parent"
                  android:layout_weight="0.33"
                  android:orientation="vertical" &gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="0dip"
                      android:layout_weight="0.9"
                      android:gravity="center"
                      android:orientation="horizontal" &gt;
  
                      &lt;TextView
                          android:id="@+id/activityEvaluationEnergyValueDisplay"
                          android:layout_width="20dip"
                          android:layout_height="wrap_content"
                          android:layout_gravity="center"
                          android:text="0"
                          android:textAppearance="?android:attr/textAppearanceMedium"
                          android:textStyle="bold" /&gt;
  
                      &lt;com.ulnda.mypsych.views.VerticalSeekBar
                          android:id="@+id/activityEvaluationEnergyValue"
                          android:layout_width="wrap_content"
                          android:layout_height="match_parent"
                          android:max="10"
                          android:progress="0" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;TextView
                      android:id="@+id/TextView11"
                      android:layout_width="match_parent"
                      android:layout_height="0dip"
                      android:layout_weight="0.1"
                      android:gravity="center"
                      android:text="Energy"
                      android:textAppearance="?android:attr/textAppearanceMedium"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dip"
                  android:layout_height="match_parent"
                  android:layout_weight="0.33"
                  android:orientation="vertical" &gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="0dip"
                      android:layout_weight="0.9"
                      android:gravity="center"
                      android:orientation="horizontal" &gt;
  
                      &lt;TextView
                          android:id="@+id/activityEvaluationWeatherValueDisplay"
                          android:layout_width="20dip"
                          android:layout_height="wrap_content"
                          android:layout_gravity="center"
                          android:text="0"
                          android:textAppearance="?android:attr/textAppearanceMedium"
                          android:textStyle="bold" /&gt;
  
                      &lt;com.ulnda.mypsych.views.VerticalSeekBar
                          android:id="@+id/activityEvaluationWeatherValue"
                          android:layout_width="wrap_content"
                          android:layout_height="match_parent"
                          android:max="10"
                          android:progress="0" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;TextView
                      android:id="@+id/TextView09"
                      android:layout_width="match_parent"
                      android:layout_height="0dip"
                      android:layout_weight="0.1"
                      android:gravity="center"
                      android:text="Weather"
                      android:textAppearance="?android:attr/textAppearanceMedium"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="0dip"
                  android:layout_height="match_parent"
                  android:layout_weight="0.33"
                  android:orientation="vertical" &gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="0dip"
                      android:layout_weight="0.9"
                      android:gravity="center"
                      android:orientation="horizontal" &gt;
  
                      &lt;TextView
                          android:id="@+id/activityEvaluationHoursSleptValueDisplay"
                          android:layout_width="20dip"
                          android:layout_height="wrap_content"
                          android:layout_gravity="center"
                          android:text="0"
                          android:textAppearance="?android:attr/textAppearanceMedium"
                          android:textStyle="bold" /&gt;
  
                      &lt;com.ulnda.mypsych.views.VerticalSeekBar
                          android:id="@+id/activityEvaluationHoursSleptValue"
                          android:layout_width="wrap_content"
                          android:layout_height="match_parent"
                          android:max="10"
                          android:progress="0" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;TextView
                      android:id="@+id/TextView07"
                      android:layout_width="match_parent"
                      android:layout_height="0dip"
                      android:layout_weight="0.1"
                      android:gravity="center"
                      android:text="Hours Slept"
                      android:textAppearance="?android:attr/textAppearanceMedium"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/TableRow&gt;
      &lt;/TableLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Why RelativeLayout fill whole screen, not 0.6 ? </p>