title: android xml layout, how to fill content to the entire screen, keeping the footer intact?
body: <p>I have 3 main elements in my XML layout (also see the image):</p>
  
  <ol>
  <li>The header, a linearLayout (nothing exciting here)</li>
  <li>The content, a relativeLayout, there is an image in there that I centered both horizontal and vertical.</li>
  <li>The footer, a linearLayout</li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/ialU5.png" alt="My current setup"></p>
  
  <p>What I need this to look like is as following:</p>
  
  <ul>
  <li>The footer(3) needs to be aligned to the bottom so there is no white space left</li>
  <li>The content(2) needs to fill the space between the header(1) and the footer(3) so the image is always centered precisely between the two elements.</li>
  </ul>
  
  <p>What I've tried:</p>
  
  <ul>
  <li>Setting the content(2) to fill vertically, but it ignores the footer(3) so it overlaps the footer so it isn't visible anymore.</li>
  <li>I also tried putting the footer(3) in another LinearLayout that fills the bottom part, and then using the gravity attribute I aligned the footer(3) to the bottom, this looks perfect for the footer(3) but the content(2) keeps it's size (shown on the image) because the footer(3) is already filling up the space below it.</li>
  </ul>
  
  <p>Can anyone help me with setting up the correct layout? </p>
  
  <p>To recap:
  I need the footer(3) to be aligned to the bottom (no white space), keep the header(1) at the top, and all the space in between should be filled with the content(2) part so the centering of the image looks right.</p>
  
  <p>I can provide my current XML-Layout code if needed.</p>