We will show you the correct way of creating navigation drawer in android .
-
We will deal with error cause by : onFragmentInteraction
-
Set a drawer element selected by default.
-
Change toolbar title based on active fragment.
http://www.arjunsk.com/android/how-to-use-fragment-layout-and-scroll-layout-in-android-studio/