I've tried this method. It works well, thank you very much!
On Mar 26, 5:42 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> You can use the invalidate(int left, int top, int right, int bottom) or the
> invalidate(Rect dirty) methods to invalidate a clip
> area:http://code.google.com/android/reference/android/view/View.html#inval...)
>
> For sample code, check out the drawPoint() method inside the TouchPaint
> class in
> APIDemoshttp://code.google.com/android/samples/ApiDemos/src/com/google/androi...
>
> private final Rect mRect = new Rect();
> mRect.set(left,right,top,bottom);
> invalidate(mRect);
>
> Thanks,
> Megha
>
>
>
> On Mon, Mar 24, 2008 at 7:25 PM, bocol <[EMAIL PROTECTED]> wrote:
>
> > I want to draw a specific area on a big View, but it will redraw all
> > the area after call invalidate(). How can I set a clip area to make
> > draw more efficiently? Thx!- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---