[android-beginners] Re: Adding a view to a viewgroup

2009-07-07 Thread Jack Ha
Your Court.onDraw() function will not get called by default for efficiency. You need to call setWillNotDraw(false) to enable it. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their

[android-beginners] Re: Adding a view to a viewgroup

2009-07-07 Thread Carl
Excellent, thanks. On 7 July, 17:17, Jack Ha jack...@t-mobile.com wrote: Your Court.onDraw() function will not get called by default for efficiency. You need to call setWillNotDraw(false) to enable it. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views,

[android-beginners] Re: Adding a view to a viewgroup

2009-07-07 Thread Romain Guy
Also, you should not call this.layout(0, 0, width, height) from onMeasure(), it will be done for you. On Tue, Jul 7, 2009 at 3:33 PM, Carlcarl...@gmail.com wrote: Excellent, thanks. On 7 July, 17:17, Jack Ha jack...@t-mobile.com wrote: Your Court.onDraw() function will not get called by