title: How to create Diamond Progress Bar Android
body: <p>My Client wants a diamond shaped progress that looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/EAfdl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EAfdl.png" alt="enter image description here"></a></p>
  
  <p>My first attempt was to use a library, but I can't find one that exists</p>
  
  <p>My next attempt was to learn how to use the <code>ProgressBar</code> view that comes with android, and set my own drawable using <a href="https://stackoverflow.com/questions/21333866/how-to-create-a-circular-progressbar-in-android-which-rotates-on-it">this</a> answer (the closest thing to an answer on stack overflow), but the answer only works on <code>ring</code> shapes, not rectangles.</p>
  
  <p><strong>What is the best way to create a diamond-shaped progress view? (By any means: custom view, progressDrawable) and how do I do that?</strong></p>