我在 android 中使用 GraphView 绘制实时数据。这样做的问题是会生成很多值。因此,整个应用程序往往会变得非常非常慢。有什么办法可以清除不在视口(viewport)中的数据/值吗?我真的不需要过去的值,因为我不允许用户手动滚动。
最佳答案
Parameters:
value - the new data to append
scrollToEnd - true => graphview will scroll to the end (maxX)
maxDataCount - if max data count is reached, the oldest data value will be lost
关于android - GraphView 实时图形往往很杂乱,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23312996/