0

I want to draw a specific gradient programmatically - something like this:drawable

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!

mbomb007
  • 3,788
  • 3
  • 39
  • 68
Anton Kizema
  • 1,072
  • 3
  • 13
  • 27

0 Answers0