Set the attachToRoot parameter of rootView2 to true.



//View rootView2 = inflater.inflate(R.layout.app_drawer, container, false);

//Change to this:
View rootView2 =...