title: Angle Corners in Android
body: <p>In Android, it's possible to <a href="https://stackoverflow.com/a/16161493/3508956">create a Drawable that has rounded corners</a>, which can then be used as the background of other controls in order to give them the appearance of having rounded corners. </p>
  
  <p>However, I want my corners to be angular, like this:</p>
  
  <p><a href="https://i.stack.imgur.com/h5UVh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h5UVh.png" alt="enter image description here"></a></p>
  
  <p>And most importantly, I want the clipped corner to remain the same size regardless of the size of the object it's applied to (just like the rounded corners would), which means that I can't just use a vector drawable, which would stretch the shape if the control is not the same size as the drawable.</p>
  
  <p>How would I accomplish the effect I'm going for (preferably a solution that doesn't involve any Java)?</p>