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" /> 回答1: It is a bug. Check this here: https://code.google.com/p/android/issues/detail?id=77862 回答2: I had the same problem and created 2 different files: in drawables