本文介绍了Android的多梯度XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是有办法可以选择使用一个&LT在绘制XML 2梯度;层列表> <形状> 或它们的某种组合?

is there a way to have 2 gradients in a drawable xml using either a <layer-list> or <shape> or some combination of them?

推荐答案

根据您的澄清罗马Nurik的反应,我想你要找的是什么centerColor。

Based on your clarification in Roman Nurik's response, I think what you're looking for is centerColor.

<gradient startColor="#00FF00" centerColor="#FFFF00" endColor="#FFFFFF"></gradient>

这篇关于Android的多梯度XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 05:14