how to clip circle in xml
<p>I need to create semi-circle in xml. I have came across clip, but I am unsure how to use it.</p>

<p>This is my circle_view drawable:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"&gt;

&lt;solid
    android:color="#666666"/&gt;

&lt;size
    android:width="120dp"
    android:height="120dp"/&gt;
&lt;/shape&gt;
</code></pre>

<p>And this is what I tried with clip:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;clip xmlns:android="http://schemas.android.com/apk/res/android"
  android:clipOrientation="vertical"
  android:drawable="@drawable/circle_view"
  android:gravity="top"/&gt;
</code></pre>

<p>But the result is nothing. How can I use clip properly in pure xml?</p>