
I need to add background to a textview, the background has two parts: top half is a gradent from color A to B, bottom part is a gradient from color C to D and B does not equal to C, it is actually a semi-transparent shadow, I intentionally put an orange layer underneath it to make it clear to see.
I am looking for the best way to do it, using shape/gradient only allows me setting startColor, centerColor and endColor but I need for color points. Using 9 patch is a bit complicated. Or can I merge two gradients together so each has two colors and together give me four colors?
Thanks!
9 patch seems the simplest way to achieve what you want. And I believe, it would generate less computations to display your image.
9 patch is not so complicated, even easy. Did you try the android 9 patch tool?