title: Whats wrong with my code in the fragment?
body: <p>I have the following code for my <code>CategoryFragment</code> class:    </p>
  
  <pre><code>public class CategoryFragment extends Fragment {
  
      View myFragment;
  
      public static CategoryFragment newInstance(){
          CategoryFragment categoryFragment = new CategoryFragment();
          return categoryFragment;
      }
  
      @Override
      public void onCreate(@Nullable Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
      }
  
  
  
      @Nullable
      @Override
      public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
          return inflater.inflate(R.layout.fragment_category,container,false);
  
      }
  }
  </code></pre>
  
  <p>In the part where <code>(R.layout.fragment_category)</code> is, it says that it <code>cannot resolve symbol R</code>.</p>