Hi,

I am trying to redraw a selected rectangular region within my custom
view on a touch event.

To achieve this I determine the rectangle around the current
touchevent location and invoke invalidate(Rect currRect). Dispalying
the values of the rect show that the co-ordinates are for the
rectangle I expect. However within the onDraw() when I display the
values of the canvas.getClipBounds() I see that the region is my whole
view.

Shouldn't invalidate(Rect) be limiting the canvas clip bounds to only
the rectangular region passed in the invalidate(Rect) and hence
redrawing only this specified region leaving the rest of the view
intact? Or am I missing something?

TIA

-- 
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