How to rectify NullPointerException in v4.DrawerLayout?
It seems like mDrawerLayout is null when calling .setDrawerListener()
.
Make sure you are using the same id for the navigation drawer in findViewById(R.id.drawer_layout)
and in the layout file.