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 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 i
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 surfac
2 matches
Mail list logo