title: How to create a rectangle with two rounded corners?
body: <p>I need to create a rectangle view with two rounded corners using canvas.I used drawRoundRect but i am getting rectangle with four rounded corners.Please anyone suggest me a way that can be helpful in solving my problem.</p>
  
  <pre><code> rect = new RectF(left, top, right, bottom);
  
   canvas.drawRoundRect(rect, 20, 20, facePaint);
  </code></pre>