【发布时间】:2014-04-26 15:33:45
【问题描述】:
我在 android 中使用 GraphView 来绘制实时数据。这样做的问题是产生了很多值。因此,整个应用程序往往变得非常缓慢。有什么办法可以清除不在视口中的数据/值?我真的不需要过去的值,因为我不允许用户手动滚动。
【问题讨论】:
标签: android graphing android-graphview
我在 android 中使用 GraphView 来绘制实时数据。这样做的问题是产生了很多值。因此,整个应用程序往往变得非常缓慢。有什么办法可以清除不在视口中的数据/值?我真的不需要过去的值,因为我不允许用户手动滚动。
【问题讨论】:
标签: android graphing android-graphview
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
【讨论】: