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,446
  • 2
  • 35
  • 61
Anton Kizema
  • 1,062
  • 3
  • 12
  • 26

0 Answers0