title: inflater.inflate(R.layout.) doesn't find Fragment.xml
body: <p>I have the Problem that the command <code>view =inflater.inflate(R.layout.</code>doesn't find my Fragment xml</p>
  
  <p>here is the Error:</p>
  
  <p><a href="https://i.stack.imgur.com/HPnQH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HPnQH.png" alt="enter image description here"></a></p>
  
  <pre><code>public class FragmentName extends Fragment {
  
      View view;
  
      public FragmentName() {
      }
  
      @Nullable
      @Override
      public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
          view =inflater.inflate(R.layout.name_fragment,container,false);
          return super.onCreateView(inflater, container, savedInstanceState);
      }
  
  }
  </code></pre>
  
  <p>This is my XML</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:gravity="center"&gt;
  
      &lt;com.google.android.material.textview.MaterialTextView
          android:id="@+id/view_id"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Charackter Name"
          android:textColor="@color/tabtextcolor"
          android:textSize="20sp"
          android:textStyle="bold"&gt;&lt;/com.google.android.material.textview.MaterialTextView&gt;
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I dont find my mistake. I rebuilded and cleaned the project.</p>