your draw routine should only be called if you call invalidate on your
view or its parent view.

On Feb 3, 7:46 am, Neilz <[email protected]> wrote:
> Hi all.
>
> When overiding onDraw() in my View, is it possible to say "Don't draw
> anything new, just keep what was there the last time"?
>
> In my app, I only want to draw when I get a sensor change. These
> changes come intermittently. However the draw() routine is being
> called continuously, many times per second, and is causing a lot of
> overhead. I want to hold the last screen output until I have new
> readings to pass in.
>
> Is this possible?

-- 
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

Reply via email to