Thanks for reply. It is probably what I need, but when I run TouchPaint app and tried to draw something, nothing happens. Could you try this demo too, please? When I run it in debug mode, it looks like the onDraw method is never called.
On Dec 30, 9:28 am, XC He <[email protected]> wrote: > You can reference the ApiDemos in the SDK > "TouchPaint" > > Actually, you have to redraw it. > > But it may another solution for you question. > > 2009/12/30 hollowback <[email protected]> > > > > > Nobody knows? > > Ok, so is it way to avoid screen redraw while calling invalidate? I > > know it is invalidate(Rect) but it is not easy to calculate accurate > > rectangle. I just need that if I draw some lines, I want it remains on > > canvas. > > > On Dec 29, 10:37 pm, hollowback <[email protected]> wrote: > > > Hi, what is best way to create app in which I only need to draw simple > > > lines through onTouchEvent? > > > When i use invalidate everytime i draw any line, that erase lines i > > > draw before. But if I use some List structure to store drawed lines it > > > lose performance. > > > Is there any simple way to do it? > > > > Thanks for reply > > > -- > > 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]<android-developers%2Bunsubs > > [email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- 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

