 <p>The height of the status bar and the title bar of your application seems to be about the same as the width of your <code>ImageView</code>, which is 50px judging from your XML.</p> <p>So then 50px + 270px = 320px, which is the total height of your screen (including the status and title bar).</p>