Comments (5)
It's not needed. The ID is recorded in the TreeManager (builder is there only
to make tree building easier, manager is there to keep the actual tree). You
call manager.getLevel(id) or manger.getNodeInfo(id) in case you need more
information after adding the node.
Original comment by [email protected]
on 14 Feb 2012 at 7:35
- Changed state: Invalid
from tree-view-list-android.
Im not following, the demo SimpleStandardAdapter class constructor takes the
LEVEL_NUMBER which represents the tree max level value am i right???
private static final int LEVEL_NUMBER = 4;
simpleAdapter = new SimpleStandardAdapter(this, selected, manager,
LEVEL_NUMBER);
So going by this, and what you're saying, i can build the tree without the
TreeBuilder class? with the InMemoryTreeManager class??
My case is i have a list of say Person objects and each object might have
another Person reference to the Parent. So im just having difficulty in how do
i build the tree if i dont know the level size of it.
regards,
Original comment by [email protected]
on 14 Feb 2012 at 10:44
from tree-view-list-android.
It's not good for unknown number of levels. Anyhow tree view is bad on mobile,
for more than 2-3 levels. You should make list navigation instead and show only
one level at a time.
Original comment by [email protected]
on 14 Feb 2012 at 11:18
from tree-view-list-android.
That's what i suspected but do you know where can i start searching about the
use of lists to show one level at a time, i assume you only use on activity and
listview for this system.
regards.
Original comment by [email protected]
on 15 Feb 2012 at 12:06
from tree-view-list-android.
I guess you have to write it yourself.
Original comment by [email protected]
on 15 Feb 2012 at 12:11
from tree-view-list-android.
Related Issues (20)
- can not do Horizontal Scroll HOT 6
- Unbound prefix error HOT 3
- project fails to compile: incorrect "final" var HOT 1
- AbstractTreeViewAdapter's getItem() is improperly implemented HOT 2
- How to delete a node from the tree...? HOT 3
- How to extend the simple adapter to check or uncheck the checkboxes recursively HOT 1
- Rebuilding tree exception HOT 1
- NPE on restoring app after process kill HOT 3
- bad performance to build a tree HOT 5
- Exception when rebuild tree HOT 1
- Indicator on the right HOT 4
- How to Expand and Collapse treeviewlist? HOT 1
- how to Keep Expand position by default? HOT 1
- how to get source code from this link HOT 2
- Add maven support HOT 1
- 'How to' doc HOT 1
- How-to Documentation HOT 1
- Project not building? HOT 1
- How to remove all children, but not parent node
- In tree view list, treeNodeInfo.isWithChildren() method is not working properly
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 tree-view-list-android.