Callback for chart finished drawing/redrawing


#1

Is there a way to know when a chart has finished drawing or redrawing? I’d like to have an indication that something is going on to the user, but don’t know when to dismiss it. When starting up and displaying 7 charts with 3 series each, it takes a while, so would like to display a spinning progress indicator.

Thanks,

Radu


#2

Hi Radu,

Not for drawing as such, but we do expose a listener interface to notify you when the layout (and therefore measure) pass is complete. The main purpose of this is that it indicates the point at which the pixel /data value methods start returning meaningful data, but it should also be apllicable to your requirement, as measure and layout are generally more expensive than drawing.

http://www.shinobicontrols.com/docs/ShinobiControls/ShinobiChartsAndroid/1.3.2/Premium/Normal/apidocs/docs/reference/com/shinobicontrols/charts/ShinobiChart.OnInternalLayoutListener.html

Regards,

Robin