How to make in Linear layout half Frame Layout and half Grid Layout?
<p>I am trying to accomplish in xml to show half frame layout and half grid layout without specifying it by myself with <code>dp</code>  Here is what i want:</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;FrameLayout
        android:id="@+id/top"
        android:layout_width="match_parent"
        android:layout_height="250dp"
        android:background="#FFFF00"
        android:layout_weight="0"
        android:orientation="vertical" &gt;

    &lt;/FrameLayout&gt;

    &lt;GridView
        android:id="@+id/buttom"
        android:layout_width="fill_parent"
        android:layout_height="match_parent"
        android:numColumns="3" &gt;
    &lt;/GridView&gt;

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

<p>I don't want to specify size of this:</p>

<pre><code>android:layout_height="250dp"
</code></pre>

<p>As i would then need to recreate this xml for all sizes. Maybe i could change something and android will calculate for all sizes ?</p>

<p>Thanks. </p>
