View view = (View)getView().findViewById(R.id.view);
//java,how use findViewById in fragments,Android studio,2021/09/23
TextView textView;
textView=getView().findViewById(R.id.textView);
//use getView(). with it
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
ImageView imageView = (ImageView) getView().findViewById(R.id.foo);
// or (ImageView) view.findViewById(R.id.foo);
// Kotlin
val button: Button = view.findViewById(R.id.button)