【问题标题】:GraphView Realtime graphing tends to be messyGraphView 实时绘图趋于混乱
【发布时间】:2014-04-26 15:33:45
【问题描述】:

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

【问题讨论】:

    标签: android graphing android-graphview


    【解决方案1】:
    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
    

    【讨论】:

      猜你喜欢
      • 2018-12-25
      • 2020-11-17
      • 2019-08-16
      • 1970-01-01
      • 1970-01-01
      • 2021-02-22
      • 2020-04-14
      • 1970-01-01
      • 2011-10-31
      相关资源
      最近更新 更多