Change The Background Color Of Xyplot In Android To White?
This my XML file I want to change the background color of this XY plot in android to White? I tried some code but it's not changing.
Solution 1:
dynamicPlot.getGraphWidget().getDomainGridLinePaint().setColor(Color.TRANSPARENT);
//set all domain lines to transperent
dynamicPlot.getGraphWidget().getRangeSubGridLinePaint().setColor(Color.TRANSPARENT);
//set all range lines to transperent
dynamicPlot.getGraphWidget().getRangeGridLinePaint().setColor(Color.TRANSPARENT);
//set all sub range lines to transperent
dynamicPlot.getGraphWidget().getDomainSubGridLinePaint().setColor(Color.TRANSPARENT);
//set all sub domain lines to transperent
dynamicPlot.getGraphWidget().getGridBackgroundPaint().setColor(Color.WHITE);
//set background to white to transperent
Post a Comment for "Change The Background Color Of Xyplot In Android To White?"