Line aliasing
Hoel opened this issue · 1 comments
Hoel commented
Hello,
I use it with android 9 and the line is aliased, does anyone know the reason and how to fix it?
Hoel commented
well, i reply to myself, to avoid the aliasing issue one must set a custom pain on which the antialias flag is set, not sure why its not done by default in the library.
Paint p = new Paint();
p.setColor(Color.BLUE);
p.setStrokeWidth(2);
p.setFlags( p.getFlags( ) | Paint.ANTI_ALIAS_FLAG );
series.setCustomPaint(p);