title: Bottom Sheet Drawer in Material design
body: <pre><code>class BottomNavigationDrawerFragment: BottomSheetDialogFragment() {
  
  override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
      return inflater.inflate(R.layout.fragment_bottomsheet, container, false)
  }
  override fun onActivityCreated(savedInstanceState: Bundle?) {
      super.onActivityCreated(savedInstanceState)
      navigation_view.setNavigationItemSelectedListener { menuItem -&gt;
          // Bottom Navigation Drawer menu item clicks
          when (menuItem!!.itemId) {
              R.id.nav1 -&gt; context!!.toast("you clicked one")
              R.id.nav2 -&gt; context!!.toast("you clicked two")
              R.id.nav3 -&gt; context!!.toast("you clicked three")
          }
          true
      }
  
  
  }
  
  // This is an extension method for easy Toast call
  fun Context.toast(message: CharSequence) {
      val toast = Toast.makeText(this, message, Toast.LENGTH_SHORT)
      toast.setGravity(Gravity.BOTTOM, 0, 600)
      toast.show()
  }
  
  }
  </code></pre>
  
  <p>What i want to achieve is after clicking navigation icon in bottom app bar a modal bottom sheet is created and and a navigation drawer is shown in it.In above code i kept three items in it.Up to here everything is okay but when comes to handling item clicking part then the line: </p>
  
  <pre><code>navigation_view.setNavigationItemSelectedListener { menuItem -&gt; 
  </code></pre>
  
  <p>shows error. It tells :</p>
  
  <pre><code>unresolved type:setNavigationItemSelectedListener
  </code></pre>
  
  <p>And <code>unresolved type in:menuItem</code></p>
  
  <p>Here is <code>fragment_bottomsheet.xml</code> :</p>
  
  <pre><code>&lt;android.support.design.widget.ConstraintLayout
      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"&gt;
  
  
      &lt;com.google.android.material.navigation.NavigationView
          android:id="@+id/navigation_view"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom"
          android:layout_marginStart="8dp"
          android:layout_marginTop="8dp"
          android:layout_marginEnd="8dp"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent"
          app:menu="@menu/bottom_nav_drawer_menu"/&gt;
  
  &lt;/android.support.design.widget.ConstraintLayout&gt;
  </code></pre>
  
  <p>What is wrong in am doing here?</p>