title: How to Draw Rounded Rectangle in API Level below 21 on a Canvas
body: <p>I am creating a custom view by extending <code>android.view.View</code>.</p>
  
  <p>Now, I need to draw a rounded rectangle on API level below 21. Android has a built in method name,<code>drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, Paint paint)</code> in <code>android.graphics.Canvas</code>, but It doesn't support API below 21, but <strong>I need to draw this on API 16</strong>. How can I achieve that? </p>
  
  <p>Thanks in advance</p>