在Android的棒棒糖梯度不工作。 - 21 API [英] Android Gradient on Lollipop not working. - API 21
本文介绍了在Android的棒棒糖梯度不工作。 - 21 API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试使用渐变的棒棒糖,它不工作。
虽然它适用于所有的previous版本。
When I try to use Gradient on Lollipop, it doesnt work. While it works on all previous versions.
下面是我的例子:
<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" />
推荐答案
这是一个错误。在这里检查:<一href=\"https://$c$c.google.com/p/android/issues/detail?id=77862\">https://$c$c.google.com/p/android/issues/detail?id=77862
It is a bug. Check this here: https://code.google.com/p/android/issues/detail?id=77862
这篇关于在Android的棒棒糖梯度不工作。 - 21 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文