Yes, this is the correct behavior. In order to avoid drawing your whole view, you should define a bitmap to cache your canvas.
2010/5/3 Gaurav Vaish <[email protected]> > Hi, > > I have a custom view that I use in the activity. > Here's the final structure: > > Button 1 > My View > Button 2 > > > When either Button 1 or Button 2 are clicked, onDraw is dispatched to > My View also. > Is this the correct behaviour? > Since drawing in my view is resource intensive, can this be avoided? > > What's the best way / practices for the same? > > > -- > Happy Hacking, > Gaurav Vaish > www.mastergaurav.com > > -- > 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%[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

