Search code examples
androidgradientandroid-5.0-lollipop

Android Gradient on Lollipop not working. - API 21


When I try to use Gradient on Lollipop, it doesnt work. While it works on all previous versions.

Here is my example:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:type="radial" android:gradientRadius="500"
    android:startColor="#00417e" android:endColor="#001b34" />


Solution

  • It is a bug. Check this here: https://code.google.com/p/android/issues/detail?id=77862

    enter image description here