views:

111

answers:

1

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

A: 

I don't see why not... a layer list drawable that references two shape drawables sounds like it would work. Have you tried that?

Roman Nurik
yeah i did, it works except for one thing: there's no way to make the gradients go from 0-50% and 50% - 100% of the drawable. they only allow for absolute values.... which sucks.
Ben
Ah, I'd update the original question to be something like "how do I create gradients that have intermediate color steps." That sounds a little more clear than the original question :)
Roman Nurik