1. We don't currently expose the underlying API for the underlying picker UI. The main reason behind that is that pickers are sometimes implemented natively and this will cause some issues. We might expose the underlying lightweight picker implementation in a future update which will allow for more control.
2. You can just add a label next to a picker in the layout or you can use PickerComponent which is a sibling of TextComponent and works in the TextModeLayout system. On Friday, August 14, 2020 at 3:55:28 PM UTC+3 P5music wrote: > My app has a dialog that wants to show 4 string pickers with numbers as > strings. > Code is like > > Picker stringPicker = new Picker(); > stringPicker.setType(Display.PICKER_TYPE_STRINGS); > stringPicker.setName(pickerName); > String[] strings=new String[max]; > for (int i=0;i<=max;i++) strings[i]=String.valueOf(i); > stringPicker.setStrings(strings); > stringPicker.setSelectedString(strings[0]); > pickersArea.add(stringPicker); > > > As you can see in the attached images the pickers are in a certain layout > that works, but I thought I woud see the real pickers, not just the current > selection for each of them. > > 1-If I click on a picker the real picker appears in a separate dialog. > Using the tab key or the provided up/down arrows it is possible to cycle > through the pickers, but this is not the intended user experience. > How can I have the real pickers on the first dialog? On Android it is > possible. > > 2-I need that the pickers have a label. Is there a method or I have to > include the labels in the layout? > Thanks in advance > > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/8b279123-2f94-4378-b346-a4e2910aca4cn%40googlegroups.com.