-
Notifications
You must be signed in to change notification settings - Fork 622
Open
Description
Hello Sir or Madam,
I have a question about how to update dynamically the AndroidTreeView or node?
I get the data node structure from the Internet, sometimes I need to refresh to get the node structure information again, is there any way to update my node information?
my code like this:
private void initTreeView() {
TreeNode treeRoot = TreeNode.root();
loadTreeDataFromAssets(treeRoot); // A custom method to get the data and create a corresponding node.
treeView = new AndroidTreeView(this, treeRoot);
treeView.setDefaultAnimation(true);
treeView.setDefaultContainerStyle(com.unnamed.b.atv.R.style.TreeNodeStyle);
treeView.setDefaultViewHolder(IconTreeItemHolder.class);
mBinding.treeContainer.addView(treeView.getView());
}
but when I refresh to get the node structure information again, what can I do to update my AndroidTreeView to display this one?
Metadata
Metadata
Assignees
Labels
No labels