title: Android get screen size in XML
body: <p>Hey I have a scrollview from the top of the screen to a bit before the bottom of the screen because this is where my ad banner takes place. I want to have some pixels in between these elements ( between buttons and banner ) due the google policy. So far I did this with setting a value in dp. But as devices differ, this results in having a huge gap between the ad and the scrollview on some hi-res phones. This is why I'd like to set </p>
  
  <pre><code>&lt;ScrollView 
  android:layout_height="(Screen_height-banner)-5px"
  </code></pre>
  
  <p>(of course I didn't even try it in this way, as this is no code, but I think it sums up pretty well what I plan to do)</p>
  
  <p>Thanks a lot for your answers!</p>