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

about style of item #23

Closed panliang-rm closed 2 months ago

panliang-rm commented 3 months ago

how could i change the default width of treeiew. The distance between the node and the node of the next layer is too large,so i want to change

AmrDeveloper commented 3 months ago

Hello @panliang-rm

This can handled like any other views, you have your xml layout and recycler view so you can control padding and margin

Thank you

panliang-rm commented 3 months ago

sorry, i,don' t know why i can't get the current viewholder TreeViewHolderFactory factory = (view, i) -> { addPlanTreeViewHolder = new AddPlanTreeViewHolder(view, context); return addPlanTreeViewHolder; }; is null

panliang-rm commented 3 months ago

And how could i get all treenodes, not just invisible

panliang-rm commented 3 months ago

When initializing, I set the isExpanded property for the node; the property is set successfully, but the display is incorrect—it does not expand. @AmrDeveloper