문제

Basically I do like this

list = new List("Hello List", List.IMPLICIT, LIST_ITEMS, null);

...

list.append(titles,images); // 1 text, 1 image

but, I wanna add descriptions to list item too. (titles, descriptions, images)

How can I do that? Do you have any example?

thank you so much.

도움이 되었습니까?

해결책

You can take a look here in the LWUIT blog.

Here you can see an example with some code

LWUIT CellRender

다른 팁

While jmunoz's answer is 100% correct I'd like to add that you can just use MultiList if you use Codename One which is MUCH simpler and unlike LWUIT which is no longer supported by anyone Codename One has a strong following.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top