Re: [android-developers] Re: onDraw is called twice

2012-08-15 Thread Romain Guy
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

[android-developers] Re: onDraw is called twice

2012-08-14 Thread igor ganapolsky
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