Closed 195024 closed 6 years ago
Thanks for the report - I'm looking into this
The fix will be going out with 1.5.4
Nice, when is the 1.5.4 coming out? I need this to work, Is there any temporary solution you could provide me with for now?
Nice, when is the 1.5.4 coming out?
Should be available sometime tomorrow morning.
Is there any temporary solution you could provide me with for now?
You'd need to extend XYGraphWidget
and then swap out the default instance with an instance of your implementation. If you look in XYGraphWidget.doOnDraw()
there are a couple lines that init the gridRect
and labelRect
instances if null. Basically that needs to happen any time the dimensions of the passed in RectF
change.
1.5.4 has been pushed to maven central and should be available any time now.
Lovely, thanks for your hard work!
I set an onTouchListener on the XYPlot to hide my LinearLayout with buttons (let's call it controlPanel) so there would be more space for the graph, but once the controlPanel is gone, the plot fills the new available height and yet the graph stays at the same size. Please look at the screens and you'll know what my issue is. I tried calling plot.redraw() and plot.getGraph.refreshLayout() after changing controlPanel's visibility but to no effect. The graph resizes itself correctly when I make the controlPanel gone and change orientation and viceversa (of course I'm saving the controlPanel's state to keep the visibility status).