AndroidTreeView icon indicating copy to clipboard operation
AndroidTreeView copied to clipboard

Children not shown

Open Abdelsattar opened this issue 9 years ago • 2 comments

i made a custom view and it have a checkbox and textView it just open when i click on the textview how to make it show the children only when i check the box !! ?

Abdelsattar avatar Oct 02 '16 02:10 Abdelsattar

Register an CompoundButton.OnCheckedChangeListener on the checkbox in the nodes ViewHolder getView() and call node.getTreeView().expand(node) when "isChecked" is true

For help with the listener: http://stackoverflow.com/questions/8386832/android-checkbox-listener

LukasJue avatar Oct 06 '16 21:10 LukasJue

hello here is my checkBoxHolder class [https://gist.github.com/Abdelsattar/64122a63ae3bc87f23856fc0e826c449](Gist for class) when i made this line of code node.getTreeView().expand(node) give me error on getTreeView()

Abdelsattar avatar Oct 09 '16 03:10 Abdelsattar