Comments (5)
Maybe you can take a look at 'Folder Structure Example' from demo app. There is '+' button with custom listener, can you reuse it?
from androidtreeview.
Could you please point out where is the listener you are saying?
I tried two listeners, both are not working.
Click the node and the node still collapse.
I want it always open.
tView.setDefaultNodeClickListener(new TreeNode.TreeNodeClickListener() {
@Override
public void onClick(TreeNode treeNode, Object o) {
}
});
parent.setClickListener(new TreeNode.TreeNodeClickListener() {
@Override
public void onClick(TreeNode treeNode, Object o) {
DateIconTreeItem item = (DateIconTreeItem) o;
int pos = item.position;
mUi.scrollable_view.scrollToPosition(pos);
}
});
from androidtreeview.
and, I try your app,
Clicking the node will collapse its children nodes.
from androidtreeview.
Oh, now I understand your problem. Such behavior is not supported yet, it is very easy to fix in library, I can add this on weekends
from androidtreeview.
Hi, I had the same problem.
My solution is to set the status of expanded inverted than the node has.
// node.setExpanded(!node.isExpanded());
it solves the problem because the node will expand when is expanded, but with a ugly delay.
It shall be better something like "return true/false" to manage this. I am waiting for this issue too.
Regards.
from androidtreeview.
Related Issues (20)
- how to style different treenode HOT 1
- Referencing node view on setDefaultNodeLongClickListener HOT 1
- is it possible to form tree structure like jstree
- wrong selected count HOT 2
- Is not compiled HOT 1
- AndroidTreeView with not showing padding for first level of hierarchy. Works for second level HOT 2
- Adding a new tree node in Folder Structure root
- New activity
- ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.github.bmelnychuk:atv:1.2.+. HOT 1
- How to hide the root parent
- How to get name of parent in custom view? HOT 1
- Refresh views option HOT 2
- HI
- Hi
- 不通知一声就这么删库了?
- Find the View in the parent item through the child item通过子项找父项
- Deactivate collapsing
- how to compile this project with Android Studio Arctic Fox | 2020.3.1 Patch 3 HOT 1
- Problem In RTL HOT 1
- Hwo to use it as file tree for my code editor or IDE apps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidtreeview.