How to fill 10% of the Android screen?
<p>How can I fill the screen with 2 horizontal colors, such that the down one will get 10% of the screen? (like a toolbar)?</p>

<p>I'm trying modify the <a href="http://file:///home/wellington/Android/android-sdk-linux_86/docs/resources/tutorials/views/hello-linearlayout.html" rel="nofollow">Linear Layout example</a> to:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;

&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;

  &lt;LinearLayout
      android:orientation="horizontal"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_weight="1"&gt;
      &lt;TextView
          android:text="green"
          android:gravity="center_horizontal"
          android:background="#00aa00"
          android:layout_width="wrap_content"
          android:layout_height="fill_parent"
          android:layout_weight="1"/&gt;
      &lt;TextView
          android:text="blue"
          android:gravity="center_horizontal"
          android:background="#0000aa"
          android:layout_width="wrap_content"
          android:layout_height="fill_parent"
          android:layout_weight="1"/&gt;
  &lt;/LinearLayout&gt;

  &lt;LinearLayout
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_weight="1"&gt;
    &lt;TextView
        android:text="single row"
        android:textSize="15pt"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1"/&gt;
  &lt;/LinearLayout&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>but if change the</p>

<pre><code>android:layout_height="fill_parent"
</code></pre>

<p>for</p>

<pre><code>android:layout_height="wrap_content"
</code></pre>

<p>on the down "panel"(is it a panel?) the text is not shown complete.</p>
