You make your own class that inherits from View and in the onDraw
method you call canvas.drawCircle, drawLine, drawPath, etc



On Feb 9, 6:47 pm, Breezy <[email protected]> wrote:
> Hmmm, still a little confused...  Are you saying to utilize the
> ImageView, but draw on it as if it were a canvas?
>
> On Feb 9, 6:31 pm, Jason Proctor <[email protected]>
> wrote:
>
>
>
> > one way is to override your View's draw() and then do stuff with the
> > Canvas instance passed in. the drawLine() etc methods are in Canvas.
>
> > >I've looked for a tutorial on it, but I can't figure out how to do
> > >it...  For starters, and I can dig some more from there, how do I have
> > >a simple program draw a simple rectangle?  Nothing else, no frills,
> > >just draw and display a rectangle?
>
> > >I was thinking for the layout I would use ImageView, then use
> > >ShapeDrawable from there, but I'm not so sure if that's correct.
>
> > >--
> > >You received this message because you are subscribed to the Google
> > >Groups "Android Developers" group.
> > >To post to this group, send email to [email protected]
> > >To unsubscribe from this group, send email to
> > >[email protected]
> > >For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > jason.vp.engineering.particle

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to