title: Draw Rectangle View with curve bottom In Android
body: <p>Good day.I want to draw an rectangle as a view but which bottom shall be curved.I do not want to apply background image like that or use any views,because if i use an view and set background,the curve part will still have invisible empty space and i would not be able to attach another curve image to the bottom curve of the custom view.So how shall i draw an rectangle with bottom curved line and use it as a view to set any background color i want?</p>
  
  <p>Notice: i have heard something and read about <code>quadTo()</code> and  <code>cubicTo()</code> android methods but i have no clue even how to use them i mean i did not understand anything from documents....So i came here for help.</p>
  
  <p>Ideally instead of such description you could see what i really want to achieve from the image...It is an toolbar or action bar or whatsover but i have to make such thing...I have no ideas at all.(By the way you can notice that there is an image curved on top as well...i have to do it too,and i reckon i can do it by drawing an bitmap.meanwhile i'm still failing to do any of the image parts in android view.)<a href="https://i.stack.imgur.com/m8AhQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/m8AhQ.png" alt="enter image description here"></a></p>