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?
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?