Hi!
I’ve put a couple of charts in a recyclerview based on this example. I’m using a custome theme that’s basically just a white background and grey gridlines. When the charts get recycled (after scrolling them out of view and then back) they start to look weird. Does anyone know what is causing this behavior? I’ve tried two different versions of SciChart, screenshots attached below. Additionally I used to only get some random black squares like this in version 2.0.0.1654, but I can’t seem to reproduce that now.
Chart normally:
After recycle in version 2.0.0.1654:
After recycle in version 2.5.0.2540:
- Konrad Morzkowski asked 5 years ago
- You must login to post comments
Hi Konrad,
This probably could be caused by our default RenderSurface implementation which uses OpenGL for rendering ( I believe RecycleView detaches/attaches chart to window which triggers reinitialization of OpenGL context ). This is known limitation and the only way to workaround it for now is to change RenderSurface which is used by chart:
surface.setRenderSurface(new RenderSurface(getActivity()));
Best regards,
Yura
- Yura Khariton answered 5 years ago
-
That fixed it, thanks!
- You must login to post comments
Please login first to submit.