Comments (3)
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.
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.
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)
- 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.