Weight in Vertical Linear Layout
<p>I m confused about weight in vertical linear layout. I can use the weight well in horizontal linear layout but how to use it in vertical linear layout. I have a relative layout which contains a liner layout(vertical) that has some text-view and text-fields.I want the following arrangement.
<img src="http://i.stack.imgur.com/Vj7gA.jpg" alt=""></p>

<p>Red line=relative layout,Green Line=Linear Layout(vertical),blue=textview,yellow=texfields</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center" &gt;
    &lt;LinearLayout
        android:id="@+id/linearLayout1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal" &gt;

        &lt;TextView
            android:id="@+id/textView1"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="Large Text"
            android:textAppearance="?android:attr/textAppearanceLarge" /&gt;

        &lt;EditText
            android:id="@+id/editText2"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:ems="10"
            android:inputType="numberDecimal" /&gt;
    &lt;/LinearLayout&gt;
&lt;/RelativeLayout&gt;
</code></pre>
