I am learning LWUIT from last 2/3 days. I am having problem with Custom renderer for my List (LWUIT).
For individual components, (List Items)
and this is my custom renderer:
I have tried many different ways to solve this but no success!
NOTE: code in RED color is newest addition: it makes only ONE item selected and makes other unchecked, but i don't want to uncheck other (means till the time i make them unchecked)
I'm not familiar with LWUIT, but I do know that it has similarities with Swing.
In your code, you are checking the isSelected parameter, which depends on the list's selection model. I would guess that what you really need is to ignore that parameter and use the isSelected() of the SelectableListItem.
And in general, don't ever change any model state in a renderer call (nor in custom painting code, if you write any). So start by getting rid of the lineYou probably need to toggle the selected state of the SelectableListItem in a selection listener, if LWUIT has such a beast.
There are no new questions, but there may be new answers.