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!
@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)
Most helpful comment
@rezawm hi.
Just get your parent item, add / remove / change the sub items, and then you can call the
notifymethod 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