title: Cutting the corners off a layout
body: <p>I have a layout in android that needs to be a certain shape, i.e. this:
  <img src="https://i.stack.imgur.com/OlYIb.png" alt="rectangle with clipped corners"></p>
  
  <p>where the corners are cut off. Is there a way of doing this programatically without setting the background of the layout to the image?
  I'm looking to keep the app size as small as possible so minimising the number of drawables in the app is a must.</p>