title: Align Linear Layout to the bottom
body: <p>I have a layout and I want the last <code>LinearLayout</code> to be aligned on the very bottom.  I attempted to set the gravity and the <code>android:layout_marginbottom=0dp</code> and neither one seems to align it to the bottom.  </p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/item_detail_container"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  tools:context=".ItemDetailActivity" &gt;
  
  &lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="#000000"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="154dp" &gt;
  
          &lt;ImageView
              android:id="@+id/albumArt"
              android:layout_width="140dp"
              android:layout_height="138dp"
              android:src="@drawable/stealyourface" /&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:gravity="fill_horizontal|center"
              android:orientation="vertical" &gt;
  
              &lt;TextView
                  android:id="@+id/artistName"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:paddingLeft="@dimen/TwentyPixels"
                  android:textAppearance="?android:attr/textAppearanceLarge"
                  android:textColor="#E6E6E6" /&gt;
  
              &lt;TextView
                  android:id="@+id/showLocation"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:paddingLeft="@dimen/TwentyPixels"
                  android:textAppearance="?android:attr/textAppearanceMedium"
                  android:textColor="#E6E6E6" /&gt;
  
              &lt;TextView
                  android:id="@+id/showDate"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:paddingLeft="@dimen/TwentyPixels"
                  android:textAppearance="?android:attr/textAppearanceMedium"
                  android:textColor="#E6E6E6" /&gt;
  
              &lt;TextView
                  android:id="@+id/runningSong"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:padding="@dimen/TwentyPixels"
                  android:textAppearance="?android:attr/textAppearanceSmall"
                  android:textColor="#E6E6E6" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;TextView
              android:id="@+id/currentlyPlaying"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:paddingLeft="@dimen/TwentyPixels"
              android:textAppearance="?android:attr/textAppearanceMedium"
              android:textColor="#E6E6E6" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;ScrollView
          android:id="@+id/ScrollView01"
          android:layout_width="match_parent"
          android:layout_height="214dp"
          android:background="#000000" &gt;
  
          &lt;LinearLayout
              android:id="@+id/songList"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical" &gt;
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  
      &lt;!-- Player Buttons --&gt;
  
      **&lt;LinearLayout
          android:id="@+id/LinearLayout"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:gravity="bottom"
          android:orientation="horizontal" 
          android:layout_marginBottom="0dp"&gt;
          &lt;RelativeLayout
              android:layout_width="320dp"
              android:layout_height="wrap_content"
              android:background="@layout/rounded_corner"
              android:gravity="center_vertical"
              android:orientation="horizontal"
              android:paddingLeft="10dp"
              android:paddingRight="10dp" &gt;
              &lt;!-- Previous Button --&gt;
              &lt;!-- Backward Button --&gt;
              &lt;!-- Play Button --&gt;
              &lt;ImageButton
                  android:id="@+id/btnPlay"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignTop="@+id/btnNext"
                  android:layout_centerHorizontal="true"
                  android:layout_centerInParent="true"
                  android:layout_centerVertical="true"
                  android:layout_toRightOf="@+id/btnBackward"
                  android:background="@null"
                  android:src="@drawable/btn_play" /&gt;
              &lt;!-- Forward Button --&gt;
              &lt;!-- Next Button --&gt;
              &lt;ImageButton
                  android:id="@+id/btnPrevious"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignBottom="@+id/btnPlay"
                  android:layout_alignParentLeft="true"
                  android:layout_centerVertical="true"
                  android:background="@null"
                  android:src="@drawable/btn_previous" /&gt;
              &lt;ImageButton
                  android:id="@+id/btnBackward"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignTop="@+id/btnPrevious"
                  android:layout_centerVertical="true"
                  android:layout_toRightOf="@+id/btnPrevious"
                  android:background="@null"
                  android:src="@drawable/btn_backward" /&gt;
              &lt;ImageButton
                  android:id="@+id/btnNext"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentLeft="false"
                  android:layout_alignTop="@+id/btnForward"
                  android:layout_centerVertical="true"
                  android:layout_marginLeft="16dp"
                  android:layout_toRightOf="@+id/btnForward"
                  android:background="@null"
                  android:src="@drawable/btn_next" /&gt;
              &lt;ImageButton
                  android:id="@+id/btnForward"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_centerVertical="true"
                  android:layout_toRightOf="@+id/btnPlay"
                  android:background="@null"
                  android:src="@drawable/btn_forward" /&gt;
          &lt;/RelativeLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;**
  </code></pre>
  
  <p></p>