We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i used this liblary. everything ok. but how to How to collapse other node expect current node clicked.
thanks in advance
The text was updated successfully, but these errors were encountered:
I found a solution
public class UtilityHolder {
public static void collapseOthers(TreeNode mNode, AndroidTreeView treeView){ if(mNode.isExpanded()) { TreeNode parent = mNode.getParent(); for (TreeNode node: parent.getChildren()) { if(node != mNode){ treeView.collapseNode(node); collapseChildern(node,treeView); } } } } private static void collapseChildern(TreeNode mNode, AndroidTreeView treeView) { if (!mNode.getChildren().isEmpty()) { for (TreeNode node : mNode.getChildren()) { treeView.collapseNode(node); collapseChildern(node,treeView); } } }
}
@OverRide public void toggle(boolean active) { UtilityHolder.collapseOthers(mNode,treeView); }
Sorry, something went wrong.
No branches or pull requests
i used this liblary. everything ok. but how to How to collapse other node expect current node clicked.
thanks in advance
The text was updated successfully, but these errors were encountered: