What is the earliest time I can use findViewById in a View subclass?
android, layout
Solution
If your class is a sub class of `ViewGroup`, you can override `onFinishInflate` and use `findViewById` inside this method:
public void onFinishInflate() {
super.onFinishInflate();
TextView view = (TextView) findViewById(R.id.view_id);
...
}
Problem
I have custom View I've written that hooks up a series of buttons to predefined methods. These buttons are children of the View I'm creating. My question is, what's the earliest method I can use to override to use a series of `findViewById`'s? I believe I can't use it in the constructor, as any calls to `findViewById` will return `null`. Thanks, Brad.