0

I'm using GradientDrawable as follows:

line1.setBackground(new GradientDrawable(GradientDrawable.Orientation.LEFT_RIGHT, new int[]{fromColor, toColor}));

How can i get gradient color for position (within [0,1]), let's say 0,8?

4ntoine
  • 19,816
  • 21
  • 96
  • 220

0 Answers0