[android-developers] Re: Beginner question about Imageviews and Layouts

2011-01-24 Thread Doug
On Jan 20, 10:41 am, MartyParty wrote: > I created an ImageView class and overrode the onDraw() method to draw > my square, but I haven't been able to integrate that with the XML > stuff. Are you asking how you use a custom view in an XML layout, or are you saying you know how to do this but it's

[android-developers] Re: Beginner question about Imageviews and Layouts

2011-01-24 Thread bruce
I've used bitmap overlays. Basically, after calling super.onDraw() I'll do a canvas.drawBitmap(). If you want to use a shape, ShapeDrawable is probably your bet. Here's a link to the info. http://developer.android.com/guide/topics/graphics/2d-graphics.html. Cheers, Bruce On Jan 20, 11:44 am, M

[android-developers] Re: Beginner question about Imageviews and Layouts

2011-01-24 Thread Marty Miller
Why wasn't this posted? On Thu, Jan 20, 2011 at 10:41 AM, MartyParty wrote: > hi guys, > > So all I want to do is display an image and draw a small white square > on top of it. This square will be moved around by the user to select > a portion of the image to crop. > > I wrote an XML layout fi