Have one big custom surface view for your game. Use canvas to draw stuff to it. Keep fields that are the position. Process input to change the position. Draw the ball where the position is on your surface (using canvas). See the examples that come with Android SDK for more info on using surfaceview.
On Mar 9, 10:36 pm, Justin Anderson <magouyaw...@gmail.com> wrote: > * > can anyone give me suggestion ??* > ummm.... code? > > Thanks, > Justin Anderson > MagouyaWare Developerhttp://sites.google.com/site/magouyaware > > > > > > > > On Mon, Mar 7, 2011 at 10: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 -- 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