AndroidTreeView
AndroidTreeView copied to clipboard
setExpand node after addChildren
is it possible to expand the node after addChildren called?
My function is running on async task to load the child from webservice and when post execute I call
node.addChildren(child); node.setExpand(true);
but it not expanded but when first I click the node its already expanded, so after post execute I need to press once to contract it, and then press once again to expand the new populated child.
Any solution will be appreciated, Thanks.
You can use node.getLevel to get the level of node. Then use node.expandLevel .
Sorry but I cannot find expandLevel function, can you give some example? node is TreeNode object by the way Thanks before.
Have you solved the problem?My question is the same as yours,thank you very much!