AmrDeveloper/TreeView

CheckBox

Opened this issue · 3 comments

Whether i can check the parent node, all its child nodes will be checked.
treeView

Hello @panliang-rm,

Sorry for delay, do you still have a code snippets on how to reproduce it

Hello, this is an example I found online. I want to ask if TreeView can provide checkbox functionality. Currently, my implementation is quite complex and not elegant - I need to manually traverse the data source and use EventBus to notify updates.

@panliang-rm Yes, TreeView allow you to define your custom view with custom logic too, I created a small example with CheckBox component

https://github.com/AmrDeveloper/TreeView/tree/master/app/src/main/java/com/amrdeveloper/treeviewlib/todotree

Screen.Recording.2024-12-26.at.13.59.45.mov

You can also decide if you want to check the parent if all children are checked or not