-3

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.

Community
  • 1
  • 1
dawanse
  • 149
  • 3
  • 14

2 Answers2

2

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.

Anoop Kanyan
  • 618
  • 7
  • 19
0

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!

xxx
  • 3,315
  • 5
  • 21
  • 40