bmelnychuk / AndroidTreeView

AndroidTreeView. TreeView implementation for android
Apache License 2.0
3k stars 620 forks source link

No0b issue with view dismiss. #82

Open sikrinick opened 8 years ago

sikrinick commented 8 years ago

Good afternoon,

I create TreeNodes with custom TreeViewHolder, that has delete button. I want to delete elements from list. AndroidTreeView is a view for alert dialog. Can I somehow dismiss alert dialog, that contains AndroidTreeView, if TreeNode.root() is empty/has no children?

bmelnychuk commented 8 years ago

Not sure if I understood correctly, but I would male listener to delete button available from outside and then after you delete node you can check tree size with TreeNode.size() and then just dismiss dialog. You should not really have access to Dialog on ViewHolder, but listener should work