In the developer guide we cover GenericListCellRenderer a lot which does that automatically: https://www.codenameone.com/manual/components.html
Notice our recommendation there to not use List but instead use a BoxLayout Y container. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/390abda9-30d2-4757-a8ae-f60f59c08cec%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.