I want to draw a specific gradient programmatically - something like this:
Could you please help me? I investigated that I can do
GradientDrawable gd = new GradientDrawable(
GradientDrawable.Orientation.LEFT_RIGHT,
new int[] {0xFF616261,0xFF131313});
gd.setCornerRadius(0f);
But the output gradient is linear, not like mine.
Thanks!