MaterialDrawer: Can not update item name in a drawer.
Hello Mike,
Thank you for such a great library, i am having some issue when trying to update the name of an item in a drawer .this is what i am using
deviceAdd.updateName(Currentpos, new StringHolder("Name"));
It seems this code is not working .Is there any solution?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (9 by maintainers)
Commits related to this issue
- * update to latest FastAdapter to fix regression in the `update*` methods * FIX https://github.com/mikepenz/MaterialDrawer/issues/2208 — committed to mikepenz/MaterialDrawer by mikepenz 6 years ago
New release done: https://github.com/mikepenz/MaterialDrawer/releases/tag/v6.0.6
It will take ~30 minutes until maven has synced and you can use it
@parmarravi which version of the library?
Currentposis an identifier? (the name suggest otherwise)Your items need to have an identifier, and you can use this identifier then to update. As the javadoc already shows: https://github.com/mikepenz/MaterialDrawer/blob/develop/library/src/main/java/com/mikepenz/materialdrawer/Drawer.java#L681