title: Component not showing in design view for navigation drawer android studio
body: <p><a href="https://i.stack.imgur.com/Ycsr2.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>I am having some problems in displaying the component in navigation drawer. Although my code does not have any problem but the navigation drawer displays nothing. 
  drawer_menu is component inside navigation drawer. Activity_main is navigation drawer itself</p>
  
  <h1>activity_main</h1>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:id="@+id/drawer_layout"
      android:fitsSystemWindows="true"
      tools:context=".MainActivity"
      tools:openDrawer="start"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;androidx.appcompat.widget.Toolbar
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="@color/colorPrimary"
              android:id="@+id/toolbar"
              android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
              app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
              android:elevation="4dp"/&gt;
          &lt;FrameLayout
              android:id="@+id/fragment_container"
              android:layout_width="match_parent"
              android:layout_height="match_parent"/&gt;
      &lt;/LinearLayout&gt;
  
          &lt;com.google.android.material.navigation.NavigationView
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:layout_gravity="start"
              android:id="@+id/nav_view"
              app:headerLayout="@layout/nav_header"
              app:menu="@menu/drawer_menu"/&gt;
  &lt;/androidx.drawerlayout.widget.DrawerLayout&gt;
  </code></pre>
  
  <h1>drawer_menu</h1>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;group android:checkableBehavior="single"&gt;
          &lt;item android:id="@+id/nav_home"
              android:icon="@drawable/ic_home"
              android:title="Home"/&gt;
          &lt;item android:id="@+id/nav_profile"
              android:icon="@drawable/ic_profile"
              android:title="Profile"/&gt;
          &lt;item android:id="@+id/nav_settings"
              android:icon="@drawable/ic_settings"
              android:title="Setting"/&gt;
          &lt;item android:id="@+id/nav_offer"
              android:icon="@drawable/ic_offer"
              android:title="Offer"/&gt;
          &lt;item android:id="@+id/nav_off"
              android:icon="@drawable/ic_off"
              android:title="Logout"/&gt;
      &lt;/group&gt;
  &lt;/menu&gt;
  </code></pre>