문제

I am using GraphView in android to plot realtime data. The problem with this is a lot of values are generated. So, the entire application tends to get really really slow. Is there any way I could clear the data/values that are not in the viewport? I don't really need the past values as I won't be allowing the user to scroll manually.

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top