1

我在 android 中使用 GraphView 来绘制实时数据。这样做的问题是产生了很多值。因此,整个应用程序往往变得非常缓慢。有什么办法可以清除不在视口中的数据/值?我真的不需要过去的值,因为我不允许用户手动滚动。</p>

4

1 回答 1

2
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
于 2014-04-28T08:46:27.283 回答