AmrDeveloper / TreeView

Multi roots TreeView :palm_tree: implementation for Android Platform with a lot of options and customization
https://amrdeveloper.github.io/TreeView/
MIT License
174 stars 23 forks source link

TreeNode isSelected #20

Closed panliang-rm closed 3 months ago

panliang-rm commented 4 months ago

image image when i use, only have log in select the catalog will be printed, the largest level will not。 i can't selected the child treenode

AmrDeveloper commented 4 months ago

Hello @panliang-rm,

Thank you for reporting this issues, i have solved it today and will release it in next few hours 1.2.0

AmrDeveloper commented 4 months ago

Please check the latest release

https://github.com/AmrDeveloper/TreeView/releases/tag/1.2.0

panliang-rm commented 4 months ago

Thanks your update, i want to know why need to update the sdk to 33, because i must update my project to 33

panliang-rm commented 4 months ago

i also notice when i collapse all child item, the state of selecet will be reset, how could i keep this state? Becase i only use child item, just select the parent, it will collapse and selected, then child item will reset.

AmrDeveloper commented 4 months ago

i also notice when i collapse all child item, the state of selecet will be reset, how could i keep this state? Becase i only use child item, just select the parent, it will collapse and selected, then child item will reset.

Hello,

This is because the current implementation supports single selection only for example when you select any node it will unselect others,

What you want is multiple selection support, i am actually working on that

panliang-rm commented 4 months ago

yes, thanks for your quickly recommend, maybe i need to support single select and it just in the node isn't catalog, have no child. maybe your mutilple select will support