Is there a way to change the background color of the graph intent when using achartengine? Currently, it displays all the graphs with a black background. I looked into GraphicalActivity.java but couldnt find a solution. Anyone?
6560 次
3 に答える
17
inGraphicalView.java
のonDraw()
メソッドにこの行を追加します
mRenderer.setApplyBackgroundColor(true);
mRenderer.setBackgroundColor(Color.RED);
それが動作します
于 2011-09-15T05:49:22.547 に答える
6
これを追加して楽しむことができます!
mRenderer.setMarginsColor(Color.RED);
于 2014-02-25T09:14:36.713 に答える
2
応答は正しいですが、GraphicalView.java でそれを行う必要はありません。チャートのレンダラーを構築する独自のクラスでこれを行う必要があります。
于 2012-01-30T20:01:28.113 に答える