[android-developers] Re: Why drawing in View.onDraw not take effect, but does in ViewGroup.dispatchDraw

2009-03-31 Thread Romain Guy
For efficiency, layouts do not get their onDraw() method called. To enable it, call setWillNotDrawEnabled(false) (or set the equivalent XML attribute to false.) On Tue, Mar 31, 2009 at 7:15 AM, FBear firebear2...@gmail.com wrote: HI buddies, I'm trying to create a custom widget which looks

[android-developers] Re: Why drawing in View.onDraw not take effect, but does in ViewGroup.dispatchDraw

2009-03-31 Thread FBear
Got it! Thank you! On 3月31日, 下午11时35分, Romain Guy romain...@google.com wrote: For efficiency, layouts do not get their onDraw() method called. To enable it, call setWillNotDrawEnabled(false) (or set the equivalent XML attribute to false.) On Tue, Mar 31, 2009 at 7:15 AM, FBear