Code Monkey home page Code Monkey logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.