title: How can I draw circle through XML Drawable - Android?
body: <p>I'm trying to draw circle with the help of XML file in android, but circle is not displaying properly. Below code is showing Oval. How can I create circle in XML file.</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="oval"&gt; 
      &lt;gradient
          android:startColor="#FFFF0000"
          android:endColor="#80FF00FF"
          android:angle="45"/&gt;
      &lt;padding android:left="2dp"
          android:top="2dp"
          android:right="2dp"
          android:bottom="2dp" /&gt;
      &lt;corners android:radius="10dip" /&gt;
  
  &lt;/shape&gt;
  </code></pre>
  
  <p>Any help would be appreciable.</p>