title: Android - How to create a view with rounded corners and a tiled image background?
body: <p>I'm trying to create a view in <code>Android</code> that has rounded corners and also uses a tiled image background (and which appears on top of another view with a tiled background).</p>
  
  <p>I can create a shape drawable for the corners and a bitmap drawable for the tiled image, but I can't see how I can apply them both the same view. </p>
  
  <p>Some things I've attempted:</p>
  
  <ul>
  <li><p>Nesting the view with the tiled background inside a view with rounded corners - doesn't work, the tiled background just appears on top with square corners</p></li>
  <li><p>Paint over the corners of the view with rounded corners - this doesn't work because of the tiled background of the view below (otherwise would work fine)</p></li>
  </ul>