Questions tagged [materialdrawer]

The MaterialDrawer is a flexible, easy to use, all in one drawer library for your Android project.

The MaterialDrawer is a flexible, easy to use, all in one drawer library for your Android project.

OpenSource

The project is available at GitHub and is maintained by Mike Penz

Tag Usage

Use this tag if you have issues regarding the MaterialDrawer. Always add the version number. If you face exceptions also add the StackTrace or error log. Also add the tag.

84 questions
8
votes
2 answers

How to customize the DrawerItem using the lib mikepenz/MaterialDrawer

I am using the lib MaterialDrawer (https://github.com/mikepenz/MaterialDrawer). I would like to use the side bar on the right as the filter section like Foursquare filter: But I noticed that there are only SectionDrawerItem.java,…
Shi
  • 510
  • 1
  • 5
  • 16
5
votes
1 answer

Lag when replacing ViewPager fragment in Navigation Bar over FrameLayout?

I am using https://github.com/mikepenz/MaterialDrawer as a library for Drawer, and I am using https://github.com/florent37/MaterialViewPager for View Pager. The problem that I am facing is that I face a bit of lag(kind of stutter lag) when I click…
5
votes
1 answer

MaterialDrawer CustomDrawerItem

How can I create a custom DrawerItem (1. I need toggle 2. I need boolean state indicator) in the MaterialDrawer library? Here MaterialDrawer author says, that creating custom DrawerItem is a really easy task, but I can't find it in the documentation…
igor_rb
  • 1,821
  • 1
  • 19
  • 34
3
votes
2 answers

Mikepenz Material Drawer custom header

I am using a custom header in mikepenz material drawer. How can i get the onClick of the header. Can I use onDrawerItemClickListener to get the click event of the custom header ? result = new DrawerBuilder() .withActivity(this) …
Mridul S Kumar
  • 326
  • 1
  • 4
  • 20
3
votes
1 answer

MaterialDrawer back button in fragment

I use a MaterialDrawer from Mike Penz and i faced with problem. I have Activity (AppCompat) and 3 Fragmnts. Activity contain all fragments. In fragment 2 and 3 i enable Back button in…
abbath0767
  • 946
  • 2
  • 11
  • 31
3
votes
1 answer

Navigation drawer icon not showing in MaterialDrawer lib project

I used material drawer lib project downloaded from github https://github.com/mikepenz/MaterialDrawer Following my code final Toolbar toolbar = (Toolbar) findViewById(R.id.activity_main_toolbar); toolbar.setTitleTextColor(Color.WHITE); …
Hemantvc
  • 2,111
  • 3
  • 30
  • 42
2
votes
1 answer

Do not connect toolbar to navigation drawer how to do it?

I use the MaterialDrawer library but for some unknown reason the Drawer itself works and the toolbar doesn't. I have a class from which activity is extends and it contains this method: public void Drawer(Toolbar toolbar, Context context,…
2
votes
0 answers

Why does mikepenz's MaterialDrawer not show the correct icon, name and email in the Account Header?

I use mikepenz's MaterialDrawer in my Android app. The app supports multiple logged in profiles at the same time, similar to Gmail. So while one profile is logged in, another profile can be added and then the user can switch the active profile by…
2
votes
2 answers

Unable to load profile image and header background from URL

I followed this tutorial step by step but when I want to load profile image and header background nothing displayed. I added internet permission and wifi is on and initialized drawerimageloader. What could the problem be? Main activity: import…
2
votes
1 answer

Using MikePenz drawer, where can i handle onDrawerOpen, close soft keyboard

i am using mikepenz drawer, i want my softkeyboard to be closed when ik open my drawer, didnt have a problem with doing this with the on hamburger item press, but can find where to handle closing the keyboard on opening the drawer by sliding.
2
votes
2 answers

How to set user avatar for Navigation drawer via url in android?

This is my header.xml
Veer3383
  • 1,785
  • 6
  • 29
  • 49
2
votes
3 answers

How to change color of icon of selected item in material drawer?

I use the Mike Penze's Material Drawer library https://github.com/mikepenz/MaterialDrawer. On samples the icon color of selected item changes, but in my app doesn't. How to make color to change?
Viktor Sinelnikov
  • 1,631
  • 2
  • 16
  • 26
2
votes
1 answer

place MaterialDrawer above actionbar

How I can put MaterialDrawer menu above ActionBar? Now, when I open MaterialDrawer menu, my ActionBar is on top of it. Is there is any thing like Z-index in CSS? :D My application style:
igor_rb
  • 1,821
  • 1
  • 19
  • 34
1
vote
1 answer

React Routes within Routes for Side Menu

I have 2 types of routes, one is like website/app level and one is SideMenu level, which is kind of nested routes. My problem is to change content by clicking on a menu-item of the SideMenu. Somehow I'm not able to get this work correctly. One…
AndaluZ
  • 1,410
  • 3
  • 15
  • 33
1
vote
1 answer

Close collapse material drawer menu item on new fragment

Am using mike penz material drawer for my project and its working great except this issue. After visiting a previous fragment which falls under a collapse menu, say for example, Create New job as shown in the screenshot, and i go to Profile, i want…
user6657492
1
2 3 4 5 6