extends ActionBarDrawerToggle {
12 |
13 | private String titleRequested;
14 | private Fragment fragmentRequested;
15 | private Fragment oldFragment;
16 | private boolean request;
17 |
18 | public MaterialActionBarDrawerToggle(Activity activity, DrawerLayout drawerLayout, Toolbar toolbar, int openDrawerContentDescRes, int closeDrawerContentDescRes) {
19 | super(activity, drawerLayout, toolbar, openDrawerContentDescRes, closeDrawerContentDescRes);
20 | }
21 |
22 | public void addFragmentRequest(Fragment fragment, String title,Fragment oldFragment) {
23 | request = true;
24 |
25 | titleRequested = title;
26 | fragmentRequested = fragment;
27 | this.oldFragment = oldFragment;
28 | }
29 |
30 | public boolean isFragmentRequested() {
31 | return request;
32 | }
33 |
34 | public Fragment getFragmentRequested() {
35 | return fragmentRequested;
36 | }
37 |
38 | public String getTitleRequested() {
39 | return titleRequested;
40 | }
41 |
42 | public Fragment getOldFragment() {
43 | return oldFragment;
44 | }
45 |
46 | public void removeFragmentRequest() {
47 | request = false;
48 |
49 | titleRequested = null;
50 | fragmentRequested = null;
51 | oldFragment = null;
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/java/it/neokree/materialnavigationdrawer/util/MaterialDrawerLayout.java:
--------------------------------------------------------------------------------
1 | package it.neokree.materialnavigationdrawer.util;
2 |
3 | import android.content.Context;
4 | import android.support.v4.widget.DrawerLayout;
5 | import android.util.AttributeSet;
6 | import android.view.KeyEvent;
7 | import android.view.MotionEvent;
8 |
9 | /**
10 | * An improved version of DrawerLayout that will ensure that a locked open DrawerLayout can be used without capturing all touches into the client
11 | * area.
12 | *
13 | * To activate, call {@link #requestDisallowInterceptTouchEvent(boolean)} on the layout. Note that this should only ever be done in case when
14 | * the drawer is to be locked open.
15 | *
16 | *
17 | * Created by neokree on 04/01/15.
18 | *
19 | * Original source code by Rainer Burgstaller
20 | */
21 | public class MaterialDrawerLayout extends DrawerLayout {
22 | private boolean multipaneSupport = false;
23 |
24 | public MaterialDrawerLayout(Context context) {
25 | super(context);
26 | }
27 |
28 | public MaterialDrawerLayout(Context context, AttributeSet attrs) {
29 | super(context, attrs);
30 | }
31 |
32 | public MaterialDrawerLayout(Context context, AttributeSet attrs, int defStyle) {
33 | super(context, attrs, defStyle);
34 | }
35 |
36 | @Override
37 | public boolean onInterceptTouchEvent(final MotionEvent ev) {
38 | if (multipaneSupport) {
39 | return false;
40 | }
41 | return super.onInterceptTouchEvent(ev);
42 | }
43 |
44 | public void setMultipaneSupport(boolean support) {
45 | if(Utils.isTablet(this.getResources())) {
46 | // custom implementation only for tablets
47 | multipaneSupport = support;
48 | }
49 | }
50 |
51 | @Override
52 | public boolean onKeyUp(int keyCode, KeyEvent event) {
53 |
54 | if(multipaneSupport) {
55 | return false;
56 | }
57 | else {
58 | return super.onKeyUp(keyCode, event);
59 | }
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/java/it/neokree/materialnavigationdrawer/util/TypefaceManager.java:
--------------------------------------------------------------------------------
1 | package it.neokree.materialnavigationdrawer.util;
2 |
3 | import android.content.res.AssetManager;
4 | import android.graphics.Typeface;
5 | import android.support.v4.util.LruCache;
6 |
7 | /**
8 | * Custom Typeface Manager for Roboto Fonts inside the drawer
9 | *
10 | * Created by neokree on 13/01/15.
11 | */
12 | public class TypefaceManager {
13 | private static final String ROBOTO_REGULAR = "Roboto-Regular.ttf";
14 | private static final String ROBOTO_MEDIUM = "Roboto-Medium.ttf";
15 | private final LruCache mCache;
16 | private final AssetManager mAssetManager;
17 |
18 | public TypefaceManager(AssetManager assetManager) {
19 | mAssetManager = assetManager;
20 | mCache = new LruCache<>(3);
21 | }
22 |
23 | public Typeface getRobotoRegular() {
24 | return getTypeface(ROBOTO_REGULAR);
25 | }
26 |
27 | public Typeface getRobotoMedium() {
28 | return getTypeface(ROBOTO_MEDIUM);
29 | }
30 |
31 | private Typeface getTypeface(final String filename) {
32 | Typeface typeface = mCache.get(filename);
33 | if (typeface == null) {
34 | typeface = Typeface.createFromAsset(mAssetManager, "fonts/" + filename);
35 | mCache.put(filename, typeface);
36 | }
37 | return typeface;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/java/it/neokree/materialnavigationdrawer/util/Utils.java:
--------------------------------------------------------------------------------
1 | package it.neokree.materialnavigationdrawer.util;
2 |
3 | import android.annotation.SuppressLint;
4 | import android.app.Activity;
5 | import android.content.Context;
6 | import android.content.res.Configuration;
7 | import android.content.res.Resources;
8 | import android.graphics.Bitmap;
9 | import android.graphics.BitmapFactory;
10 | import android.graphics.Canvas;
11 | import android.graphics.Color;
12 | import android.graphics.Paint;
13 | import android.graphics.Point;
14 | import android.graphics.PorterDuff;
15 | import android.graphics.PorterDuffXfermode;
16 | import android.graphics.Rect;
17 | import android.graphics.drawable.BitmapDrawable;
18 | import android.graphics.drawable.Drawable;
19 | import android.graphics.drawable.GradientDrawable;
20 | import android.os.Build;
21 | import android.util.DisplayMetrics;
22 | import android.view.Display;
23 | import android.view.View;
24 | import android.view.animation.AlphaAnimation;
25 | import android.widget.ImageView;
26 |
27 | import java.util.Locale;
28 |
29 | /**
30 | * Class containing some static utility methods.
31 | *
32 | * Created by neokree on 06/01/15.
33 | */
34 | public class Utils {
35 | private Utils() {}
36 |
37 | public static int getDrawerWidth(Resources res) {
38 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {
39 |
40 | if (res.getConfiguration().smallestScreenWidthDp >= 600 || res.getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
41 | // device is a tablet
42 | return (int) (320 * res.getDisplayMetrics().density);
43 | } else {
44 | return (int) (res.getDisplayMetrics().widthPixels - (56 * res.getDisplayMetrics().density));
45 | }
46 | }
47 | else { // for devices without smallestScreenWidthDp reference calculate if device screen is over 600 dp
48 | if((res.getDisplayMetrics().widthPixels/res.getDisplayMetrics().density) >= 600 || res.getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE)
49 | return (int) (320 * res.getDisplayMetrics().density);
50 | else
51 | return (int) (res.getDisplayMetrics().widthPixels - (56 * res.getDisplayMetrics().density));
52 | }
53 | }
54 |
55 | public static boolean isTablet(Resources res) {
56 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {
57 | return res.getConfiguration().smallestScreenWidthDp >= 600;
58 | }
59 | else { // for devices without smallestScreenWidthDp reference calculate if device screen is over 600
60 | return (res.getDisplayMetrics().widthPixels/res.getDisplayMetrics().density) >= 600;
61 |
62 | }
63 | }
64 |
65 | public static int getScreenHeight(Activity act) {
66 | int height = 0;
67 | Display display = act.getWindowManager().getDefaultDisplay();
68 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {
69 | Point size = new Point();
70 | display.getSize(size);
71 | height = size.y;
72 | } else {
73 | height = display.getHeight(); // deprecated
74 | }
75 | return height;
76 | }
77 |
78 | public static Point getUserPhotoSize(Resources res) {
79 | int size = (int) (64 * res.getDisplayMetrics().density);
80 |
81 | return new Point(size,size);
82 | }
83 |
84 | public static Point getBackgroundSize(Resources res) {
85 | int width = getDrawerWidth(res);
86 |
87 | int height = (9 * width) / 16;
88 |
89 | return new Point(width,height);
90 | }
91 |
92 | public static Bitmap getCroppedBitmapDrawable(Bitmap bitmap) {
93 | Bitmap output = Bitmap.createBitmap(bitmap.getWidth(),
94 | bitmap.getHeight(), Bitmap.Config.ARGB_8888);
95 | Canvas canvas = new Canvas(output);
96 |
97 | final int color = 0xff424242;
98 | final Paint paint = new Paint();
99 | final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());
100 |
101 | paint.setAntiAlias(true);
102 | canvas.drawARGB(0, 0, 0, 0);
103 | paint.setColor(color);
104 | // canvas.drawRoundRect(rectF, roundPx, roundPx, paint);
105 | canvas.drawCircle(bitmap.getWidth() / 2, bitmap.getHeight() / 2,
106 | bitmap.getWidth() / 2, paint);
107 | paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));
108 | canvas.drawBitmap(bitmap, rect, rect, paint);
109 | //Bitmap _bmp = Bitmap.createScaledBitmap(output, 60, 60, false);
110 | //return _bmp;
111 | return output;
112 | }
113 |
114 | public static Bitmap resizeBitmapFromResource(Resources res, int resId,int reqWidth, int reqHeight) {
115 |
116 | // First decode with inJustDecodeBounds=true to check dimensions
117 | final BitmapFactory.Options options = new BitmapFactory.Options();
118 | options.inJustDecodeBounds = true;
119 | BitmapFactory.decodeResource(res, resId, options);
120 |
121 | // Calculate inSampleSize
122 | options.inSampleSize = calculateSize(options, reqWidth, reqHeight);
123 |
124 | // Decode bitmap with inSampleSize set
125 | options.inJustDecodeBounds = false;
126 | return BitmapFactory.decodeResource(res, resId, options);
127 | }
128 |
129 | public static Bitmap resizeBitmap(Bitmap bitmap, int reqWidth,int reqHeight) {
130 | return Bitmap.createScaledBitmap(bitmap,reqWidth,reqHeight,true);
131 |
132 | }
133 |
134 | public static int calculateSize(
135 | BitmapFactory.Options options, int reqWidth, int reqHeight) {
136 | // Raw height and width of image
137 | final int height = options.outHeight;
138 | final int width = options.outWidth;
139 | int inSampleSize = 1;
140 |
141 | if (height > reqHeight || width > reqWidth) {
142 |
143 | final int halfHeight = height / 2;
144 | final int halfWidth = width / 2;
145 |
146 | // Calculate the largest inSampleSize value that is a power of 2 and keeps both
147 | // height and width larger than the requested height and width.
148 | while ((halfHeight / inSampleSize) > reqHeight
149 | && (halfWidth / inSampleSize) > reqWidth) {
150 | inSampleSize *= 2;
151 | }
152 | }
153 |
154 | return inSampleSize;
155 | }
156 |
157 | public static void recycleDrawable(Drawable drawable) {
158 | if (drawable instanceof BitmapDrawable) {
159 | BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable;
160 | bitmapDrawable.getBitmap().recycle();
161 | }
162 | }
163 |
164 | public static boolean isRTL() {
165 | Locale defLocale = Locale.getDefault();
166 | final int directionality = Character.getDirectionality(defLocale.getDisplayName().charAt(0));
167 | return directionality == Character.DIRECTIONALITY_RIGHT_TO_LEFT ||
168 | directionality == Character.DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC;
169 | }
170 |
171 | public static void setAlpha(View v, float alpha) {
172 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
173 | v.setAlpha(alpha);
174 | } else {
175 | AlphaAnimation animation = new AlphaAnimation(alpha, alpha);
176 | animation.setDuration(0);
177 | animation.setFillAfter(true);
178 | v.startAnimation(animation);
179 | }
180 | }
181 |
182 | }
183 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/drawable-hdpi/ic_arrow_drop_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/MaterialNavigationDrawer/library/src/main/res/drawable-hdpi/ic_arrow_drop_down_white_24dp.png
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/drawable-hdpi/ic_arrow_drop_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/MaterialNavigationDrawer/library/src/main/res/drawable-hdpi/ic_arrow_drop_up_white_24dp.png
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/drawable-mdpi/ic_arrow_drop_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/MaterialNavigationDrawer/library/src/main/res/drawable-mdpi/ic_arrow_drop_down_white_24dp.png
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/drawable-mdpi/ic_arrow_drop_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/MaterialNavigationDrawer/library/src/main/res/drawable-mdpi/ic_arrow_drop_up_white_24dp.png
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/drawable-xhdpi/ic_arrow_drop_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/MaterialNavigationDrawer/library/src/main/res/drawable-xhdpi/ic_arrow_drop_down_white_24dp.png
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/drawable-xhdpi/ic_arrow_drop_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/MaterialNavigationDrawer/library/src/main/res/drawable-xhdpi/ic_arrow_drop_up_white_24dp.png
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/drawable-xxhdpi/ic_arrow_drop_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/MaterialNavigationDrawer/library/src/main/res/drawable-xxhdpi/ic_arrow_drop_down_white_24dp.png
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/drawable-xxhdpi/ic_arrow_drop_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/MaterialNavigationDrawer/library/src/main/res/drawable-xxhdpi/ic_arrow_drop_up_white_24dp.png
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/drawable-xxxhdpi/ic_arrow_drop_down_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/MaterialNavigationDrawer/library/src/main/res/drawable-xxxhdpi/ic_arrow_drop_down_white_24dp.png
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/drawable-xxxhdpi/ic_arrow_drop_up_white_24dp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/MaterialNavigationDrawer/library/src/main/res/drawable-xxxhdpi/ic_arrow_drop_up_white_24dp.png
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/drawable/black_gradient.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/layout/activity_google_navigation_drawer.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
11 |
12 |
18 |
19 |
20 |
26 |
27 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/layout/activity_material_navigation_drawer.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
13 |
14 |
19 |
20 |
26 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/layout/activity_material_navigation_drawer_customheader.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
13 |
14 |
19 |
20 |
26 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/layout/layout_drawer.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
22 |
23 |
27 |
28 |
39 |
40 |
51 |
52 |
62 |
63 |
72 |
73 |
82 |
83 |
93 |
94 |
95 |
96 |
108 |
109 |
117 |
118 |
126 |
127 |
128 |
129 |
138 |
139 |
140 |
141 |
142 |
152 |
153 |
154 |
155 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/layout/layout_drawer_customheader.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
20 |
21 |
25 |
26 |
36 |
37 |
38 |
39 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/layout/layout_material_section.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
27 |
28 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/layout/layout_material_section_icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
14 |
15 |
29 |
30 |
46 |
47 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/layout/layout_material_section_icon_large.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
14 |
15 |
29 |
30 |
46 |
47 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/layout/layout_material_section_icon_large_ripple.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
14 |
15 |
23 |
24 |
38 |
39 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/layout/layout_material_section_icon_ripple.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
15 |
16 |
24 |
25 |
39 |
40 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/layout/layout_material_section_ripple.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
14 |
15 |
16 |
30 |
31 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/values-v19/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0dp
5 | 189dp
6 | 16dp
7 |
8 | 25dp
9 | 41dp
10 |
11 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/values-v19/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
16 |
27 |
28 |
41 |
42 |
46 |
47 |
51 |
52 |
56 |
57 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/values-v21/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 21dp
5 | 189dp
6 | 41dp
7 |
8 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/values-v21/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
17 |
29 |
30 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0dp
5 | 164dp
6 | 16dp
7 |
8 |
9 | -1dp
10 |
11 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/values/integers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 0
4 | 1
5 | 2
6 | 3
7 |
8 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/library/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
16 |
27 |
28 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
56 |
57 |
65 |
66 |
69 |
70 |
73 |
74 |
78 |
79 |
--------------------------------------------------------------------------------
/MaterialNavigationDrawer/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':demo', ':library'
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | MaterialNavigationDrawer
2 | ========================
3 |
4 | Navigation Drawer Activity with material design style and simplified methods
5 | [](https://android-arsenal.com/details/1/1114) [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K4GJELZKNEF68)
6 |
7 | It requires 10+ API and android support v7 (Toolbar)
8 |
9 | [Download example apk](https://raw.github.com/neokree/MaterialNavigationDrawer/master/example.apk)
10 |
11 | If you are using MaterialNavigationDrawer in your app and would like to be listed here, please let me know via [email](mailto:neokree@gmail.com)!
12 |
13 | ## Set up a Navigation Drawer
14 | check the [wiki page](https://github.com/neokree/MaterialNavigationDrawer/wiki/Set-Up-a-Navigation-Drawer-Activity)
15 |
16 | ## How to import
17 | Add this to your build.gradle:
18 | ```java
19 | repositories {
20 | mavenCentral()
21 | }
22 |
23 | dependencies {
24 | compile 'it.neokree:MaterialNavigationDrawer:1.3'
25 | }
26 | ```
27 |
28 | You don't know how to do something? Visit the [wiki](https://github.com/neokree/MaterialNavigationDrawer/wiki)!
29 | You need some examples? See the [example project](https://github.com/neokree/MaterialNavigationDrawer/tree/master/MaterialNavigationDrawer)!
30 |
31 | ### Useful issues
32 | For open a useful issue, please follow this little guide:
33 |
34 | 1. Check if your issue is not opened yet. This prevent to have different questions to the same problem.
35 | 2. When you open an issue, please add the library version used, devices tested and related api.
36 |
37 | ### External libraries used
38 | [Android-UI](https://github.com/markushi/android-ui)
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/art/accountChangeButton.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/art/accountChangeButton.jpg
--------------------------------------------------------------------------------
/art/screen1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/art/screen1.jpg
--------------------------------------------------------------------------------
/art/screen2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/art/screen2.jpg
--------------------------------------------------------------------------------
/art/screen3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/art/screen3.jpg
--------------------------------------------------------------------------------
/art/screen4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/art/screen4.jpg
--------------------------------------------------------------------------------
/art/screen5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/art/screen5.jpg
--------------------------------------------------------------------------------
/art/screen6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/art/screen6.jpg
--------------------------------------------------------------------------------
/art/screen7.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/art/screen7.jpg
--------------------------------------------------------------------------------
/art/screen8.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/art/screen8.jpg
--------------------------------------------------------------------------------
/art/section1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/art/section1.jpg
--------------------------------------------------------------------------------
/example.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daimajia/MaterialNavigationDrawer/3c677fa834d9ebe90cd8568024c3bf3fa8c10ae2/example.apk
--------------------------------------------------------------------------------