Search code examples
listjava-melwuit

How to use ContainerList in lwuit 1.5?


My list having variable length list items. ContainerList supports variable length list items. When I explored it on internet, I can't find any samples for ContainerList. Give me a sample piece of code to work on ContainerList.


Solution

  • LWUIT demo contains a ContainerList sample in the Scroll demo.

    There is also an explanation in our blog http://codenameone.blogspot.com/

    Generally ContainerList is a drop-in replacement for list, just replace the usage of List with ContainerList and it should work pretty seamlessly (albeit slower).