They are all shown with the same UIID. The UIID has 4 standard states. The first is selected and the others are unselected. getStyle() returns the current UIID which can change dynamically.
On Saturday, January 16, 2021 at 4:22:35 PM UTC+2 [email protected] wrote: > Hi, > > Thank you mr. Shai. The new image shows the buttons centered, but I don't > understand why not all the images are shown with the same UIID. > > > My method: > private Button creaBoton(String texto, boolean activa) { String uiid = > activa ? "Dialog" : "Dialog"; Button btBoton = new Button(texto); > btBoton.setUIID(uiid); > btBoton.getAllStyles().setAlignment(Component.CENTER); > btBoton.setTextPosition(Component.BOTTOM); btBoton.setEnabled(activa); > return btBoton; } > -- 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/dd31504e-362d-442d-a9c9-97ec4be4fc13n%40googlegroups.com.
