MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

How could i tell the state of the rendered finished?

Open amsterly opened this issue 11 years ago • 3 comments

I added some lines in another thread like " while(result){ addSingleLine()}" and i updated it in MainThread .Now there is a thing. I have another analysisMethod after its addSingleLine() finished,my analysisMethod always get the wrong size of thel ines becaulse of Rendering is not finised yet. How could I know the state of the rendered finished?thx!

amsterly avatar Dec 04 '15 09:12 amsterly

I add the data in MainThread because added in other thread makes error when we touch the screen.I need to know the state of Finish ,then I could use my ananlysis method

amsterly avatar Dec 04 '15 09:12 amsterly

I suggest you extend the chart and add a listener that fires when the drawing is finished.

PhilJay avatar Dec 04 '15 14:12 PhilJay

Hi friend, Could u show me a demo?I don't not know where to set my listener...Thx!

amsterly avatar Dec 07 '15 01:12 amsterly