It seem similar to other questions but I doesn't found solutions. I have a layout defined by xml file:
TextView textView = (TextView) findViewbyId(R.id.text_view);
findViewById() will traverse only the given view and its children. It will not find sibling views. Your textview is a sibling to the custom view, not a child view.
In an activity, the root view where
findViewById() traversal starts is the activity window (
Activity.findViewById()). In a view, it is the view itself (