After update the changes of the position, call the "invalidate()"
method. This method redraw the canvas.

Regards,
Felix

On Mar 8, 10:11 am, JackeyChan <a397420...@gmail.com> wrote:
> I only want the ball can move with user input: up , down, left,
> right.
> now , the ball is created by extend the View class and draw it on the
> canvas, then set this to be default activity view.
> but i don't know how to handle user input for re-draw it.
> can anyone give me suggestion ??

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