Materialdrawer: Spinner inside an ExpandableBadgeDrawerItem

Created on 24 Apr 2017  路  5Comments  路  Source: mikepenz/MaterialDrawer

Hi Mike, I really admire your work on MaterialDrawer. I'd like to rewrite my application to use your plugin, but I have to use expandable lists with spinners as subitems. Is it possible using MaterialDrawer and ExpandableBadgeDrawerItem?

question

All 5 comments

@L-Dogg it is not possible with the default items. But you can easily write your own CustomDrawerItems doing whatever you need.

Thanks for such a fast reply. So, extending SecondaryDrawerItem with additional fields will do?

@L-Dogg that's a solution. You can also write one from scratch if you do not need the flexibility of the SecondaryDrawerItem.

Thanks for your help!

You are welcome.

The sample also has a few custom ones. https://github.com/mikepenz/MaterialDrawer/tree/develop/app/src/main/java/com/mikepenz/materialdrawer/app/drawerItems

This one is one of the simpler ones: https://github.com/mikepenz/MaterialDrawer/blob/develop/app/src/main/java/com/mikepenz/materialdrawer/app/drawerItems/IconDrawerItem.java

(As it does not base on the Primary or Secondary DrawerItems which have a lot of configurations available)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sonh picture sonh  路  3Comments

ghost picture ghost  路  3Comments

pranjal-joshi picture pranjal-joshi  路  3Comments

Ahmed-Emad picture Ahmed-Emad  路  4Comments

HanderWei picture HanderWei  路  3Comments