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
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
2 matches
Mail list logo