Reputation: 28349
I'm looking at this example of how to drag things around the screen and my only point of confusion is what exactly IS the Canvas c object being passed in?
Is this View occupying the entire screen? What if it's set as the child to a Layout? Are there multiple canvases (one for each display item) or is there one overall Canvas upon which all things are rendered?
I'm having a hard time picturing what's happening beneath the hood.
Upvotes: 0
Views: 127
Reputation: 36035
The Canvas is the entire drawable area of the screen. You're supposed to stay within the bounds that the view has set, but in reality there's nothing stopping you from drawing all over.
Upvotes: 1