title: Android Background Image larger than container
body: <p>We are starting to develop Android apps coming from iOS development and are having difficulty working with background images.</p>
  
  <p>We have a background image 1024 x 1200 that we want centered in a view horizontally and top aligned. We do not want the image to be scaled but want the image to overflow / clip so it sits correctly in the view. Something like you would achieve with CSS background-position: top center;</p>
  
  <p>We've tried a few approaches but are always getting a scaled image. Combinations of setScaleType(), setAdjustViewBounds(), setting gravity via LayoutParams and various other things have had no success. We're now a bit stuck on what to try next.</p>
  
  <p>The idea is that we can use a single image for multiple screen sizes without having the image resize (we will have 2 or 3 of these images for screen size/density ranges). This is to reduce the number of these images we need to cover all the android screen possibilities.</p>
  
  <p>Craig</p>