Android: How to set layout height automatic
<p>I want to set layout height automatic like in this picture:</p>

<p><a href="https://i.stack.imgur.com/i7NOx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i7NOx.png" alt="http://i.stack.imgur.com/i7NOx.png"></a></p>

<p>Because if I set layout height in <code>fill_parent</code> or <code>match_parent</code> it looks like this:</p>

<p><a href="https://i.stack.imgur.com/SHdT4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SHdT4.png" alt="enter image description here"></a></p>

<p>I want something like a <code>fill_parent</code> but in the middle.</p>

<p>Sorry for bad english, I hope you can understand.</p>