title: What is the point of using view.getRootView().findViewById() inside of onViewCreated in fragment?
body: <p>I am watching a tutorial in which the instructor uses</p>
  <pre><code>test = view.getRootView().findViewById(R.id.test);
  </code></pre>
  <p>inside of onViewCreated() in the fragment.</p>
  <p>So something like this:</p>
  <pre><code> @Override
      public void onViewCreated(@NonNull @NotNull View view, @Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
          super.onViewCreated(view, savedInstanceState);
  
          //test is just a TextView for testing the application, will remove it later
          test = view.getRootView().findViewById(R.id.test);
      }
  </code></pre>
  <p>Is there any point of using <code>view.getRootView().findViewById()</code> opposed to just using <code>view.findViewById()</code>? I'm a little confused on the purpose of <code>getRootView()</code> here as the instructor uses.</p>
  <p>Thank you!</p>