AndroidTreeView icon indicating copy to clipboard operation
AndroidTreeView copied to clipboard

Insert new TreeNode how to make it show

Open erikswed opened this issue 9 years ago • 4 comments

I´m adding 3 TreeNodes like

-N1 ----N2 ------N3

In the N2 node I´m creating a new node named N33 and doing Node.addChild(node); and I expected my tree to look like this but nothing happens! -N1 ----N2 ------N3 ------N33

How do I update invalidate the tree? I try androidTreeView.getView().invalidate(); but that gives "IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first."

erikswed avatar Jan 16 '17 12:01 erikswed

i have a question.please help me. ' container' .what is..?

MFV96 avatar Jan 25 '17 12:01 MFV96

Check out wiki https://en.wikipedia.org/wiki/Container

erikswed avatar Jan 25 '17 17:01 erikswed

@erikswed have you found any solution?

mohitmadaan27 avatar Mar 08 '17 15:03 mohitmadaan27

Yes in my case I just do androidTreeView.expandAll(); from within N2. In my case the N2 is responsible for adding the nod.

erikswed avatar Mar 08 '17 17:03 erikswed