title: Putting ImageView on the bottom of the screen
body: <p>I am trying to put the ImageView on the bottom of the layout with following XML:</p>
  
  <pre><code>        &lt;?xml version="1.0" encoding="utf-8"?&gt;
          &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              xmlns:tools="http://schemas.android.com/tools"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="vertical"
              tools:context=".MainActivity" &gt;
              &lt;LinearLayout
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:background="#EEEEEE"
                  android:gravity="center"
                  android:orientation="horizontal" &gt;
                  &lt;ImageView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="bottom"
                      android:src="@drawable/photo" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I am following the instructions found here <a href="http://sandipchitale.blogspot.co.uk/2010/05/linearlayout-gravity-and-layoutgravity.html" rel="nofollow noreferrer">http://sandipchitale.blogspot.co.uk/2010/05/linearlayout-gravity-and-layoutgravity.html</a></p>
  
  <p>Only difference is that I use ImageView instead of Button as here:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:gravity="center"
          android:orientation="horizontal" &gt;
          &lt;Button
              android:id="@+id/Button03"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="bottom"
              android:text="bottom" &gt;
          &lt;/Button&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Which puts the button on the expected place:</p>
  
  <p><img src="https://i.stack.imgur.com/OO9qG.png" alt="enter image description here"></p>
  
  <p>Unfortunately this isn't the case in my XML on the top of the post. The ImageView isn't placed on the bottom as the Button in reference XML is.</p>
  
  <p><img src="https://i.stack.imgur.com/RjzKp.png" alt="enter image description here"></p>
  
  <p>Any ideas why that happens ?</p>