Linear layout arangment in android
<p>I am learning Linear layout and I have some confusion.</p>

<pre><code>&lt;LinearLayout 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:orientation="vertical"
    tools:context=".MainActivity" &gt;   


    &lt;TextView
        android:id="@+id/textView1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/hello_world" 
        android:layout_weight=".33"/&gt;

    &lt;Button
        android:id="@+id/button1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="Button" 
        android:layout_weight=".33"/&gt; 


     &lt;Button
        android:id="@+id/button2"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"   
        android:text="Button" 
        android:layout_weight=".3"/&gt;


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

<p>In these code there are three elements. </p>

<ol>
<li>TextView  2. Button1  3. Button2</li>
</ol>

<p>The linear layout orientation is vertical and I have given them equal weight adjusting in one weight value only.</p>

<p>Now in vertical orientation I am am giving</p>

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

<p>So it is filling both the height and width.</p>

<p>But when I am using horizontal layout and writing like</p>

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

<p>It is filling width but not filling height</p>

<p>Instead of giving android:layout_height="fill_parent" why it not filling the height?</p>
