invalidate does not work in timer class as it is a seperate thread. Post an
event to handler and invalidate.

On Thu, Dec 3, 2009 at 8:47 AM, manoj <[email protected]> wrote:

> just call the invalidate()/ postInvalidate() in the timer class.
>
> The invalidate()/postinvalidate() will call onDraw() implicitly. You
> cant directly call onDraw().
>
> On Dec 3, 6:38 pm, "Sasikumar.S" <[email protected]> wrote:
> > Hi,
> >
> > I need,
> >
> > I'm using a class extends with view.
> > I'm using timer in that class.
> > I'm using onTouchEvent() also.
> > I onTouchEvent() i'm using invalidate().
> > So it is calling onDraw().
> >
> > When i use invalidate() in Timer.
> > It is not calling onDraw(). Why?....
> >
> > --
> > Thanks & Regards
> > Sasikumar.S
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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