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'm try by this code
for (TreeNode tn: tView.getRoot().getChildren()) { Log.d(TAG, ((MyHolder.IconTreeItem) tn.getValue()).getText()); if (((MyHolder.IconTreeItem) tn.getValue()).getText().toLowerCase().matches("(.)"+edFind.getText().toString().toLowerCase()+"(.)")) { Log.d(TAG, "Совпадение " + ((MyHolder.IconTreeItem) tn.getValue()).getText()); tView.selectNode(tn, true); } } not working : (
The text was updated successfully, but these errors were encountered:
Very interesting too.
Sorry, something went wrong.
#128 This solution works for expanding the founded item.
This solution worked for me to scroll to the related node..
public void scrollToNode(TreeNode currentNode, AndroidTreeView tView) { expandNodeBranch(tView, currentNode, false); // view of the found current node View targetView = currentNode.getViewHolder().getView(); targetView.getParent().requestChildFocus(targetView,targetView); // scroll to current node } private void expandNodeBranch(AndroidTreeView treeView, TreeNode node, boolean expand) { if (expand && !node.isLeaf()) treeView.expandNode(node); if (node.getLevel() > 0) expandNodeBranch(treeView, node.getParent(), true); }
No branches or pull requests
I'm try by this code
for (TreeNode tn: tView.getRoot().getChildren()) {
Log.d(TAG, ((MyHolder.IconTreeItem) tn.getValue()).getText());
if (((MyHolder.IconTreeItem) tn.getValue()).getText().toLowerCase().matches("(.)"+edFind.getText().toString().toLowerCase()+"(.)")) {
Log.d(TAG, "Совпадение " + ((MyHolder.IconTreeItem) tn.getValue()).getText());
tView.selectNode(tn, true);
}
}
not working : (
The text was updated successfully, but these errors were encountered: