This is the expected behavior. If a View is blended (with transparent or translucent regions) and has to redraw, any Views behind it must be redrawn as well. This behavior changes when hardware acceleration is turned on. The "behind Views" are redrawn but the onDraw() method is not called since each View is backed by a display list.
On Wed, Aug 15, 2012 at 2:45 AM, igor ganapolsky <[email protected]> wrote: > Have you tried commenting out super.onDraw()? > > On Saturday, December 19, 2009 5:06:01 PM UTC-5, jdekeij wrote: >> >> Hoi, >> >> In my layout I have a custom view which extends View and under this a >> button is placed. When I click the button the color changes to orange >> (Android default behavior) but it also causes the onDraw method being >> called of my custom view. Releasing the button causes again the onDraw >> method being called. >> How can I prevent this behavior? How to stop the invalidation of my >> view when clicking a button? >> >> Thanks in advance, >> Jasper > > -- > 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 -- Romain Guy Android framework engineer [email protected] -- 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

