Android drawline with hardware acceleration and anti-aliasing causes artifacts

I am working on an Android custom graphical representation that uses Canvas # drawLines and a paint object that has anti-aliasing enabled. My opinion includes hardware acceleration. Sometimes, when I pinch the zoom in / out, some of the lines on my chart will appear unconnected, and they seem to turn into a gradient. If I go to the software level or turn off anti-aliasing, the problem will disappear. Is this a bug with drawLines or does anyone have an idea of ​​what might happen?

The first image has a problem, the second image is slightly moved and shows how the graph looks most of the time, with the lines fully connected.

(image shows the problem) enter image description here

(, , ) - ) enter image description here

+5
2
+1

.

Accelerometer Toy. (, ...) , , , .

+1

All Articles