Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在可绘制的 xml 中使用它们或它们的某种组合来拥有 2 个<layer-list>渐变<shape>?
<layer-list>
<shape>
根据您在 Roman Nurik 的回复中的说明,我认为您正在寻找的是 centerColor。
<gradient startColor="#00FF00" centerColor="#FFFF00" endColor="#FFFFFF"></gradient>
我不明白为什么不...引用两个形状可绘制对象的图层列表可绘制对象听起来会起作用。你试过吗?