On Thursday, September 29, 2011 5:08:23 PM UTC-4, Peter wrote: > > In my application, I need to display a line chart with some real-time > data. The chart needs to be updated 10 times within a second. To the > user, it should appear as if the line is scrolling to the left of the > screen. New data gets displayed to the right. > > I am trying to understand the best way to accomplish this under > Android. On each tick, do I simply redraw the canvas or is there a > better way? > > Hello Peter, you can accomplish this in many ways. Your solution will likely involve overriding a canvas onDraw() method. To have it "tick" you can perhaps update some elements that onDraw() is using at a regular interval and invalidate() the view.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

