title: Aligning LinearLayout to the bottom of a DrawerLayout
body: <p>I've implemented a DrawerLayout in my application's primary XML layout - and I've created a footer (basically a horizontal [navigation-ish] bar) which fill the bottom of the screen. The problem is - it is continually appearing at the top of the screen... I've attempted using <code>android:layout_gravity="bottom"</code>, <code>android:layout_weight="1.0"</code> and <code>android:baselineAligned="false"</code> as documented here: <a href="http://sandipchitale.blogspot.com/2010/05/linearlayout-gravity-and-layoutgravity.html" rel="nofollow noreferrer">http://sandipchitale.blogspot.com/2010/05/linearlayout-gravity-and-layoutgravity.html</a> However I still cannot seem to get the footer from appearing at the top of the layout. </p>
  
  <p>Any suggestions are appreciated: </p>
  
  <h2>XML Snippet:</h2>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_gravity="bottom"
      android:background="@color/black"
      android:baselineAligned="false" &gt;
  
  
  
      ...
  
  
  
          &lt;LinearLayout
          android:id="@+id/footer"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_weight="1.0"
          android:orientation="horizontal" &gt;
      &lt;/LinearLayout&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <h2>Full XML Source:</h2>
  
  <p><a href="http://pastebin.com/67cHtwJ1" rel="nofollow noreferrer">http://pastebin.com/67cHtwJ1</a></p>
  
  <h2>Screenshot:</h2>
  
  <p><a href="https://i.stack.imgur.com/QAFIZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QAFIZ.png" alt="enter image description here"></a></p>