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
1
vote
0 answers

Drawer Layout gets cropped at bottom when QRCodeReaderView is inflated

In my project I'm using this material drawer lib of version 5.0.0 and this QR code reader lib of version 2.0.1. XML layout has the following structure:
GV_FiQst
  • 1,487
  • 14
  • 30
1
vote
1 answer

Hamburger Icon with MaterialDrawer

I'm trying to add to my toolbar the hamburger icon using the MaterialDrawer library. And I could put the icon the icon into the toolbar with this code // Handle Toolbar Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); …
1
vote
1 answer

MaterialDrawer - Update badge of SecondaryDrawerItem

I use the MaterialDrawer library by Mike Penz. (version 6.0.0) My drawer contains an ExpandableBadgeDrawerItem (with ID=1) with a SecondaryDrawerItem (with ID=2). Both have styles set up for them, and using .setBadge directly in the drawer builder…
Makarele
  • 59
  • 9
1
vote
0 answers

I can't tune up material drawer 6.0.2 in android studio 3.0.1

I can't tune up material drawer 6.0.2 from https://github.com/mikepenz/MaterialDrawer Build.gradle apply plugin: 'com.android.application' android { compileSdkVersion 26 defaultConfig { applicationId…
Vladislav Penchev
  • 451
  • 1
  • 3
  • 7
1
vote
1 answer

Toolbar is cutting from top. How to show full Toolbar?

I am adding material drawer Material Drawer and made a method addNavigationDrawer to add Navigation Drawer and calling the method after I get the details of user from Firebase Firestore Database(You can find it in Auth Listener under OnCreate…
Lakshya Punhani
  • 273
  • 1
  • 5
  • 17
1
vote
1 answer

MaterialDrawer crash on build

So I tried to build a MaterialDrawer sidebar for my Android app. But when the drawer hits build my app crashes..any ideas why? My crash log looks like this: Caused by: java.lang.RuntimeException: please pass an activity at…
Alphonse
  • 661
  • 1
  • 12
  • 29
1
vote
1 answer

updateBadge in expandableitem in MaterialDrawer Android

I show a badge in the expandableItem. When the user click in that item, I want that the badge in the expandableItem disappeare and just show the badge in the subitem. But in my code, when I do click, the badge disappear but the subitems are not…
oscargc
  • 305
  • 1
  • 2
  • 11
1
vote
1 answer

Refresh Collapsing itemDrawer

I am using MaterialDrawer Library in which I am setting my drawer to be collapsing items get their names and their sub items' names for Firebase database But when I add a sub-item it doesn't appears until I collapse and expand the collapsing item…
1
vote
4 answers

How to change the humberger icon in toolbar?

I am using mikepenz drawer library but I want to change default humburger icon and back arrow icon with my own drawable icon. I have tried many times but I am unable to change the icon with my own icon . Can anyone help me ? new DrawerBuilder() …
Bilal Hussain
  • 149
  • 1
  • 12
1
vote
3 answers

Android build mini navigation drawer with Icons

I want to build a fixed mini nav drawer in android. will will always be visible an not extendable, with icons only. Something like https://github.com/mikepenz/MaterialDrawer Mini Drawer. I try used his library, but I can't figured out how to make…
Mr T
  • 1,409
  • 1
  • 17
  • 24
1
vote
1 answer

how to set SwitchDrawerItem checkbox of mikepenz android library from other method

I am using the lib MaterialDrawer (https://github.com/mikepenz/MaterialDrawer). i can set SwitchDrawerItem true of false on drawerbuilder with the command below: new SwitchDrawerItem().withName("Record…
Boy Wowor
  • 11
  • 3
1
vote
1 answer

Implement Material Design CrossFadeDrawer

I am trying to implement CrossFadeDraweLayout using https://github.com/mikepenz/CrossfadeDrawerLayout which is basically a subpart of the project under the name Material Drawer available on GitHub. I have gone through all the code provided and I am…
Ayush Aggarwal
  • 215
  • 4
  • 15
1
vote
1 answer

Remove left margin from materialdrawer

How to remove the space Mikepenz Material Drawer.I used custom layout for profile menu and drawer Items. I didnt set Margin or padding for those views. And i also tried activity horizontal margin to 0. Help would be appreciated. same margin right…
Noorul
  • 3,386
  • 3
  • 32
  • 54
1
vote
1 answer

Parameter effective visibility conflict between java and kotlin

I'm trying to override bindView function: import com.mikepenz.materialdrawer.model.PrimaryDrawerItem open class SpinnerDrawerItem() : PrimaryDrawerItem(), View.OnClickListener { override fun bindView(viewHolder: ViewHolder?) { …
Daniel Gomez Rico
  • 15,026
  • 20
  • 92
  • 162
1
vote
1 answer

Extend com.mikepenz.materialdrawer.AccountHeaderBuilder

I need to build my own AccountHeaderBuilder implementation. So I'm trying to extend a class from MaterialDrawer library. In Android studio, how do I need to proceed in order to do that? Should MaterialDrawer library be imported as a module? If yes,…
Greg
  • 689
  • 2
  • 8
  • 23