わかりましたので、これを行います(実際のコードではありません)
try {
final View view = LayoutInflater.from(context).inflate(R.layout.ownComponent, null);
} catch (InflateExpection e) {
}
if (view != null) {
// This child is null about 5/10 times!
View child = view.findViewById(R.id.ownComponentChild);
}
膨らませた後、子ビューが膨らむことが保証されていないことを読んだので、すべての子の準備ができたときにコールバックを取得する適切な方法は何でしょうか?