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, SwitchDrawerItem.java and ToggleDrawerItem.java that defined toggle and switch. But they are not enough to define the filters. I would like to ask if I can define my own layout for the sidebar or add more options to the DrawerItem? Thanks in advance!
The easiest solution is to extend one of the existing
DrawerItems
, but this only works if you do not need a completely different item.A CustomDrawerItem is already shown in the sample application
If you need more customization just implement the
IDrawerItem
interface and implement the methods. An easierDrawerItem
which implements theAbstractDrawerItem
which comes with a few predefined methods and properties is the DividerDrawerItem