Closed yf13 closed 2 years ago
Hi @yf13 thanks for the bug report - would it be possible to get some sample code that triggers this issue?
@halfhp This is an issue with using androidplot in recyclerviews generally, I created a simple sample where I regenrated the issue https://github.com/tjohnn/androidplot-in-recyclerview-issue
I am trying to use XYPlot in a fragment managed by ViewPager2.
When set RenderMode to use background thread, I can see the charts only upon the first enter of the fragment. This means after swiping to another fragment and swipe back, the plots are empty. I have another TextView which is still visible.
Then when I changed the RenderMode to use main thread, I can see the XYPlot when swiping back to the containing fragment.
There is no crash or any logs.