question : support gradient color ?
shakeri-mreza opened this issue · comments
shakeri-mreza commented
Dan Hill commented
Hi @shakeri-mreza - I'm working on a way to allow generic drawing effects and going to be tracking that work here: #63
Once that's in place, I can add gradient support fairly easily.
Dan Hill commented
I should have mentioned, in the meantime, you can achieve gradients like this:
final SparkView sparkView = findViewById(R.id.sparkview);
sparkView.setFillType(SparkView.FillType.DOWN);
final Paint fillPaint = sparkView.getSparkFillPaint();
fillPaint.setShader(new LinearGradient(...));