onDraw() is not being called because LinearLayout sets willNotDraw to true. If you want onDraw() to be called, call setWillNotDraw(false) on your layout.
On Wed, Mar 4, 2009 at 7:04 AM, simon <simonse...@gmail.com> wrote: > > Hi, > > I have a LinearLayout with several views inside and would like to use > the onDraw() method of the LinearLayout to draw something on top of > all those views. When I tried to do this I realized the onDraw() > method of the LinearLayout is never called (I added breakpoints to the > method to check this). Is the onDraw() method never called on layouts? > How should I be drawing on top of all my child views? > > Thanks > > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---