Skip to content Skip to sidebar Skip to footer

Drawing A Circle Where The User Has Touched On Canvas

Starting to learn Canvas and have two classes so far (main one to call the view and the view) The View class onDraw creates a target (ie number of cicles and each one coloured diff

Solution 1:

You have provided very little information in your question. A little elaboration wouldn't have hurt. Are the targets(the circles) being created as you would want them to be? If yes, then get a hold of the FrameLayout and use the 'addView' method to overlay your ball onto the main view.

A slightly old but nevertheless a tutorial which may be useful to you: http://www.kellbot.com/2009/06/android-hello-circle/

Good Luck

Post a Comment for "Drawing A Circle Where The User Has Touched On Canvas"