Tuesday, February 9, 2010

[android-developers] Re: How can I draw a simple shape with shapedrawable?

Okay, I see what you're talking about, but I guess my question is how
do I put that into my ImageView that's in my XML file?

On Feb 9, 7:02 pm, schwiz <sch...@gmail.com> wrote:
> 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 <mbre...@gmail.com> 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 <jason.android.li...@gmail.com>
> > 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 android-developers@googlegroups.com
> > > >To unsubscribe from this group, send email to
> > > >android-developers+unsubscribe@googlegroups.com
> > > >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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate