Create a radial gradient programmatically
<p>Im trying to reproduce the following gradient programmatically. </p>

<pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;gradient 
        android:startColor="@color/startcolor" 
        android:centerColor="#343434"
        android:endColor="#00000000"
        android:type="radial"
        android:gradientRadius="140"
        android:centerY="45%"
     /&gt;
    &lt;corners android:radius="0dp" /&gt;
&lt;/shape&gt;
</code></pre>

<p>How can I set programmatically the paramether? Thanks</p>

<pre><code>        android:centerY="45%"
</code></pre>
