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" />
I had the same problem and created 2 different files:
in drawables
android:gradientRadius="270"
and in drawables-v21
android:gradientRadius="270dp"
Now it works fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With