简体   繁体   English

Android的背景色图

[英]Background color Graph Android

How can I change the background color of the graph in Android. 如何在Android中更改图表的背景颜色。 Meaning: the background of the graph is black, and the graph itself is white, also the background of the activity is white. 含义:图表的背景为黑色,图表本身为白色,活动的背景也为白色。 Can't seem to find where to change the black to white... 似乎找不到在哪里将黑变白...

I can change the color of the Graph itself, but not the background on which it is displayed 我可以更改图表本身的颜色,但不能更改其显示的背景

Thanks in advance 提前致谢

You can use below methods to change colors 您可以使用以下方法更改颜色

renderer.setApplyBackgroundColor(true);
renderer.setBackgroundColor(Color.WHITE);
renderer.setMarginsColor(Color.WHITE);

找到解决方案,不得不使用mRenderer.setMarginsColor谢谢您的回答!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM