Simply override the input methods in your activity then call onDraw to have the canvas be redrawn.
On Mon, Mar 7, 2011 at 9:11 PM, 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/ http://www.youtube.com/user/revoltingx -- 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