Simple tool which helps you to inject DrawerLayout into existing Activity layout tree
Use this inside Activity class, after setContentView()
call.
DrawerLayoutInstaller.from(this)
.drawerRoot(R.layout.drawer_root)
.drawerLeftView(menuView)
.drawerLeftWidth(Utils.dpToPx(300))
.withNavigationIconToggler(getToolbar())
.drawerListener(new DrawerLayout.SimpleDrawerListener() {
})
.build();