Changing the background of an androidplots to white

馋奶兔 提交于 2019-12-13 06:15:07

问题


I have being playing around with the ListView of XYPlots. I was able to change background either by using style="@style/APDefacto.Light" or style="@style/APDefacto.Dark". These two work well but, I want my graph to have complete white background instead of a light or dark background.

Screenshot with the light background.

If you look carefully at the graph, you will see that the background has a grey color but the graph itself is white. I want the whole background to be completely white.

I have try the solution of the link Change the background color of XYplot in android to white?. But that only have the effect of removing the square on the graph but no change is seen on the background.

Below is the resulting screenshot.

Any clues, Thanks.


回答1:


Just add these attrs to your XYPlot's xml:

ap:backgroundColor="#FFF"
ap:graphBackgroundColor="#FFF"


来源:https://stackoverflow.com/questions/42862104/changing-the-background-of-an-androidplots-to-white

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!