草庐IT

setDrawBackground

全部标签

Android GraphView - 如何用颜色填充折线图下的区域?

我创建了一个线图,它看起来像这样:但我想像这样填充图形下方的区域:如何实现此功能?你能帮帮我吗? 最佳答案 使用setDrawBackground方法启用它。LineGraphViewgraphView=newLineGraphView(this,"MyLineGraph");graphView.setDrawBackground(true); 关于AndroidGraphView-如何用颜色填充折线图下的区域?,我们在StackOverflow上找到一个类似的问题: