I want to draw a chart, and I use scrollview for this. my scrollview has a chart view. I noticed that scrollview onDraw calls onDraw of my chart view. Now I draw the entire graph on the canvas when calling the onDraw diagram. Also scrollview onDraw is called every time I view the view. Therefore, I end up drawing the entire graph several times. Is there a better way to achieve this
source
share