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, Marty Miller <[email protected]> wrote: > Why wasn't this posted? > > On Thu, Jan 20, 2011 at 10:41 AM, MartyParty <[email protected]> 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 file to handle the picture, but getting the > > white box to draw hasn't worked. > > > 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. > > > Is this the right way to go about this? > > > please help!!! > > -- 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

