Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thanks for your help. This works, but only temporarily holds the value and when you click somewhere else it gets moved. Also any idea on what I did wrong in the original code? Commented Dec 2, 2013 at 7:16
  • 1
    you are drawing points on Canvas that you have created. this canvas has no relation with the View. when you want to draw anything, draw on the canvas that you get as a parameter in onDraw() method Commented Dec 2, 2013 at 7:18