Simple tool which helps you to inject DrawerLayout into existing Activity layout tree
Java
Switch branches/tags
Nothing to show
Clone or download
Latest commit f023e77 Feb 1, 2015
Permalink
Failed to load latest commit information.
DrawerLayoutInstaller.java Create DrawerLayoutInstaller.java Jan 31, 2015
README.md Update README.md Jan 31, 2015

README.md

DrawerLayoutInstaller

Simple tool which helps you to inject DrawerLayout into existing Activity layout tree

Usage

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();