1
我相信RadioButton
“selected”样式没有正确设置。在Codename One中设置RadioButton“Selected”样式
我试图在主题中使用标准UIID RadioButton
来设置单选按钮的样式。
我将未选中的字体样式更新为黑色。
我更新了选定和按下的字体风格,以蓝绿色。
它看起来像按下样式工作,但选定的样式不起作用。这样,当单选按钮被按下时,字体会切换到蓝绿色,但是在被选中后,字体会恢复为黑色。
这是我用于测试的代码。
Form hi = new Form("Hi World");
hi.addComponent(new RadioButton("Button 1"));
hi.addComponent(new RadioButton("Button 2"));
hi.addComponent(new RadioButton("Button 3"));
hi.show();