[android-developers] Re: Button in Custom View

2009-04-06 Thread xspotlivin
Ok, that mostly makes sense. So my next question is how do I make the button a child of my custom view so that I can use View.findViewById ()? On Apr 6, 10:14 am, Greg Krimer wrote: > Activity.findViewById() is different from View.findViewById(). > > The former uses the View set via setContentVi

[android-developers] Re: Button in Custom View

2009-04-06 Thread Greg Krimer
Activity.findViewById() is different from View.findViewById(). The former uses the View set via setContentView() as the root and the later uses this View as the root. In other words, in order for ... findViewById(R.id.checkbox); ... to return a non-null View the button must be a child of your v