How to use MaterialDrawer step by step?

2.8k Views Asked by At

I am searching for step by step tutorial on using MaterialDrawer (https://github.com/mikepenz/MaterialDrawer.git) library. Can I found jar file of this?

I have searched many times but couldn't find any help. All I found is this link. But there is not any answer.

2

There are 2 best solutions below

2
On

Use the following code in your grade file:

compile('com.mikepenz:materialdrawer:4.6.4@aar') {
transitive = true
}

It's clearly mentioned on the library's page.

To add the drawer to your activity use:

new DrawerBuilder().withActivity(this).build();

The library has documentation regarding how to set up the drawer, how to add items, just take a look at it and try it in your app.

0
On

It's very simple, and all you need has been present in documentation.

Step 1: Open build.gradle in 'app' folder, add following line to dependencies:

compile('com.mikepenz:materialdrawer:4.6.4@aar') {
    transitive = true
}

Step 2: Add following line to onCreate method:

new DrawerBuilder().withActivity(this).build();

Read more in documentation to know how to custom your drawer!