Materialdrawer: how to remove badge?

Created on 9 Oct 2015  路  5Comments  路  Source: mikepenz/MaterialDrawer

How to remove this badge?

Now I'm using nav.updateBadge(identifier, "");

Thank you
screenshots_2015-10-09-13-03-06

question

Most helpful comment

@dominicsavb set it to null

All 5 comments

@dominicsavb set it to null

solved!
Thank you

Hi Mike,

I'm still having problems : set exactly what to null ?
withBadge(..) has 2 versions (String and StringHolder), setting it to null raises a compile time error.
and there's no update.. method.
Help, please.

Edit : Found it. in Drawer : public void updateBadge(int identifier, StringHolder badge)

can't you use withBadge((String)null)

yeah, that would've worked too.
I used updateBadge on the drawer.

Anyway thanks for quick response.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kakai248 picture kakai248  路  4Comments

Ahmed-Emad picture Ahmed-Emad  路  4Comments

Meeks91 picture Meeks91  路  3Comments

y2kshane picture y2kshane  路  4Comments

jehad-suliman picture jehad-suliman  路  3Comments