Hi,
when the list doesn't have focus no selection is rendered by default.
I think invoking setIgnoreFocusComponentWhenUnfocused(false) would disable 
that behavior.

On Sunday, May 2, 2021 at 5:27:33 PM UTC+3 Ivan wrote:

> Hi guys,
> I'm usig com.codename1.ui.List with items of type Multibutton and in 
> renderer I'm setting color of "Line1".text  based on data.
> When list is shown my style is not applied. I have to scroll the list the 
> style to appear.
> I tried to revalidate/repaint in various places and the workaround: set 
> selected to index 0 and scrollToSelected but this is ignored until I change 
> index beyond current screen and it really scrolls (which is not acceptable)
> How to force the list to revalidate/repaint my styles?
>
> Tested in simulator.
>
> Thanks
>
> Ivan
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/14e1a1f7-5b5c-4127-be2c-e7fb4f8cb768n%40googlegroups.com.

Reply via email to