How to make a rounded view in android : <p>I want to make a rounded view as below</p>

<p><a href="https://i.stack.imgur.com/P3W9U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P3W9U.png" alt="enter image description here"></a></p>

<p>I expect to create that view with programmatically changed radius, color. Not from xml configured</p>
