Skip to content

Navigation Drawer Activity with material design style and simplified methods

License

Notifications You must be signed in to change notification settings

pedroadame/MaterialNavigationDrawer

 
 

Repository files navigation

Maven Jitpack MaterialNavigationDrawer

This fork uses the native translucent status bar for following the Material Design specs better as long as other improvements.

For docs, see the original repository.

How to use

Add this to your build.gradle:

repositories {
    maven{
        url "https://jitpack.io"
    }
}

dependencies {
    compile 'com.github.Kinnonii:MaterialNavigationDrawer:1.4.1'
}

If you want to use this fork, just extend the TranslucentKitKatStatusBar theme in the values-v19/styles.xml and add<item name="android:windowTranslucentStatus">true</item> to your styles-v21.xml. Be sure to work with dimens.xml if you have independent activities that doesn't extends from MaterialNavigationDrawer. Here are the files:

####values/dimens.xml

<dimen name="padding_app_bar_top">0dp</dimen> <!-- Apply this as paddingTop of your app_bar.xml root element -->
<dimen name="app_bar_size">56dp</dimen> <!-- Apply this as layout_height of your app_bar.xml root element -->

####values-v19/dimens.xml

<dimen name="padding_app_bar_top">24dp</dimen> <!-- Apply this as paddingTop of your app_bar.xml root element -->
<dimen name="app_bar_size">80dp</dimen> <!-- Apply this as layout_height of your app_bar.xml root element -->

####values-v21/dimens.xml

<dimen name="padding_app_bar_top">24dp</dimen> <!-- Apply this as paddingTop of your app_bar.xml root element -->
<dimen name="app_bar_size">80dp</dimen> <!-- Apply this as layout_height of your app_bar.xml root element -->

About

Navigation Drawer Activity with material design style and simplified methods

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%