Last week the forum member juliofabio sent this gorgeous looking video to the forum showing a variable size list component. This looks really stunning and shows off how much you can do with LWUIT when you put your mind to it.
What I'm not exactly sure about is why did he choose to use a List?
Why not container and components like I used in my recent Tree demo?
Why List? Even if we think of our data as a list it might not always be appropriate for a list component.
Specifically in this case the set of elements within the "list" seem to be predefined and small hence there is no advantage to using a model. In fact I would assume that writing that code using a model and renderer paradigm would be very unintuitive. This set will never reach a very large size so the advantages of a huge million element list won't be realized either. It seems from the demo that even list animations were disabled, this is something that can be acheived using containers though.
Using Container.replace() can allow for most of the special effects within this list and can provide even more impressive effects (such as 3d). Building something like that can be trivial without getting into all of the complexities related to the list component, so why would someone want such a list?
Monday, April 27, 2009
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment