How to apply gradient for below kitkat devices in android
<p>My app consists of a <strong>background color gradient</strong>, i have tested the app on both lollipop and kitkat devices, where i found gradient is working for above lollipop devices, but <strong>not working below lollipop devices.</strong></p>

<p>Here is my <strong>gradient.xml</strong> look like</p>

<pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"&gt;
&lt;gradient
    android:angle="90"
    android:centerColor="#4477C7"
    android:centerY="0"
    android:endColor="#303F9F"
    android:gradientRadius="775dp"
    android:startColor="#59C6FF"
    android:type="radial" /&gt;
&lt;corners android:radius="0dp" /&gt;&lt;/shape&gt;
</code></pre>

<p>Here is my <strong>MainActivity</strong> look like</p>

<pre><code>public class MainActivity extends AppCompatActivity {

  @Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
}}
</code></pre>

<p>Here is my <strong>activity_main</strong> look like</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background_gradient"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:id="@+id/relativeLayout"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="ravi.gradientexample.MainActivity"&gt;
&lt;TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="25dp"
    android:text="Hello World!"
    android:textColor="@android:color/white" /&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p>And here is the <strong>output</strong> that i'm getting.</p>

<p><a href="http://i.stack.imgur.com/Be9nX.png" rel="nofollow">output in both lollipop and kitkat devices</a></p>