Creating a bent line like an arc in Android using xml in drawable
<p><strong>What I did</strong>..
</p>

<pre><code>&lt;item&gt;
    &lt;rotate
        android:fromDegrees="40"
        android:toDegrees="20"
        android:pivotX="25%"
        android:pivotY="50%" &gt;
        &lt;shape
            android:shape="line"
            android:top="1dip" &gt;
            &lt;stroke
                android:width="1dip"
                android:color="#FF0000" /&gt;
        &lt;/shape&gt;
    &lt;/rotate&gt;
&lt;/item&gt;
</code></pre>

<p></p>

<p><strong>It rotates but doesn't bend. It needs to be bent to form an arc like shape</strong></p>

<p>Any Idea?</p>