Code Monkey home page Code Monkey logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
This is apparently a bug in androd/java serialisation (it is done by underlying 
java writeObject). You have a very long list of children. 
You can find the bug described here: 
http://bugs.sun.com/view_bug.do?bug_id=4152790 and (better explanation) 
http://stackoverflow.com/questions/438875/stackoverflowerror-when-serializing-an
-object-in-java . 

What you need to do is to write your own, custom serialization for the list of 
children -> instead of using default serialization define something like 
"MyOwnBetterSerializableList" with writeObject/readObject  methods defined..... 
I have also found interesting discussion from someone who tried to do it and 
had problem with custom write/read not called by Android (it seems that Android 
does not ALWAYS call serialize/deserialize - only when it is really needed, 
sometimes it will simply pass the object) : 
http://markmail.org/message/nlythcrqmepey2xv#query:+page:1+mid:vx3o3j5ozvm3zw5i+
state:results 

Speaking of the solution - This is really a weird edge case - I cannot really 
see how such a long list might be really usable on Android device (scrolling 
through list of 500 entries). Probably it calls for completely different user 
interface.  
So I won't make a fix for that, however this is a nice, separate piece of code 
to write - If you would like to make that fix - make a clone and make a 
patch/pull request so that I can incorporate that in my code.

Original comment by [email protected] on 19 Feb 2012 at 8:13

  • Changed state: WontFix

from tree-view-list-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
Ok, thank you for such a detailed answer. I'll think another solution (or may 
be own serialization methods).
What about long tree with 500 nodes - it is the users desire, but I think about 
possibility interface's reorganization too.

Original comment by [email protected] on 19 Feb 2012 at 2:49

from tree-view-list-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 21, 2024
You're welcome... I know sometimes the customer says "it has to be done this 
way" even if this is pretty much unusable. Rather than having tree view, if 
there are lots of records to display, I would do it in the way that you have 
only one level (on a branch of tree) displayed at a time. When you go the lower 
level (drill down) you animate the higher level out (to the left) and at the 
same time animate the lower level in (from right). Revers when drill up.

Original comment by [email protected] on 19 Feb 2012 at 2:56

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.