Materialdrawer: How to add, remove or update items in expandable subItems?

Created on 12 May 2016  路  2Comments  路  Source: mikepenz/MaterialDrawer

Hey @Mikepenz, There is addItem(s) but how about Items in expandable? how to modify(Add, remove or update) them? I googled for it but I don't find any solution!

question

Most helpful comment

@rezawm hi.

Just get your parent item, add / remove / change the sub items, and then you can call the notify method on the adapter.

The adapter can be retrieved via Drawer.getAdapter()

Here's the method you should call: notifyAdapterSubItemsChanged(int globalPosition)
https://github.com/sathishmscict/FastAdapter/blob/master/library/src/main/java/com/mikepenz/fastadapter/FastAdapter.java#L1231

All 2 comments

@rezawm hi.

Just get your parent item, add / remove / change the sub items, and then you can call the notify method on the adapter.

The adapter can be retrieved via Drawer.getAdapter()

Here's the method you should call: notifyAdapterSubItemsChanged(int globalPosition)
https://github.com/sathishmscict/FastAdapter/blob/master/library/src/main/java/com/mikepenz/fastadapter/FastAdapter.java#L1231

I am using GenericFastItemAdapter class and here i didn't get the method notifyAdapterSubItemsChanged(int globalPosition)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pranjal-joshi picture pranjal-joshi  路  3Comments

oleynikd picture oleynikd  路  4Comments

wayne1203 picture wayne1203  路  3Comments

fuentepa picture fuentepa  路  3Comments

jd-alexander picture jd-alexander  路  4Comments