How can I make this kind of drawable gradient with XML?

I can do a simple gradient from color A to color B but i don't know how to combine two gradients in the same drawable.
How can I make this kind of drawable gradient with XML?

I can do a simple gradient from color A to color B but i don't know how to combine two gradients in the same drawable.