Back to Materialdrawer

FAQ / WIKI

FAQ.md

10.0.0-b011.8 KB
Original Source

FAQ / WIKI

This is the official MaterialDrawer FAQ/Wiki. People can contribute to it through pull requests. Each question and it's answer is hosted in a separate file within the FAQ folder.

MaterialDrawer

AccountHeader

Testing

CustomDrawerItem's

Asked super frequently

How can i create a drawer without a default selection

kotlin
//just set the selection to -1
slider.setSelectionAtPosition(-1)

Can I lock the Drawer

As the MaterialDrawer will just create a normal DrawerLayout (with some magic around it) everything a normal DrawerLayout can do is also available in the MaterialDrawer.

kotlin
drawerLayout.setDrawerLockMode(int lockMode); //or (int lockMode, int edgeGravity)