It is being called... between 5-10 times a second. I just set up a
routine to check. And I'm most definitely not calling invalidate() on
these occasions.

On Feb 3, 2:04 pm, schwiz <sch...@gmail.com> wrote:
> 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 <neilhorn...@googlemail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to