title: Align Button to Bottom using LinearLayout
body: <p>Trying to align button at Bottom using LinearLayout, but getting just below TextView.</p>
  
  <p>To set button at bottom, I am using <code>android:layout_gravity="bottom"</code> but still not done</p>
  
  <p><strong>LinearLayout xml</strong></p>
  
  <pre><code>    &lt;LinearLayout
          android:id="@+id/linearLayout2"
          android:layout_width="0dp"
          android:layout_height="match_parent"            
          android:orientation="vertical" &gt;
  
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content" /&gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal" &gt;
  
          &lt;TextView
              android:layout_width="0dp"
              android:layout_weight="1"
              android:layout_height="wrap_content"/&gt;
  
          &lt;TextView
              android:layout_width="0dp"
              android:layout_weight="1"
              android:layout_height="wrap_content"/&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_gravity="bottom"
              android:layout_height="wrap_content"&gt;
  
              &lt;Button
                  android:layout_width="0dp"
                  android:layout_weight="1"
                  android:layout_height="wrap_content"
                  android:text="Bottom" /&gt;
  
          &lt;/LinearLayout&gt;
  
   &lt;/LinearLayout&gt;
  </code></pre>