How to use gradient in following code
<p>I have defined XML for gradient.</p>

<pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android" &gt;
&lt;gradient 
    android:startColor="#9acd32"
    android:endColor="#ffffff"
    android:angle="180"
    /&gt;
</code></pre>

<p></p>

<p>i want to use gradient in following code.</p>

<pre><code>XYRegionFormatter regionFormatter3 = new XYRegionFormatter(Color.BLUE);
</code></pre>

<p>instead of Color.BLUE</p>

<p>How to use it? </p>
