【发布时间】:2017-02-24 13:50:07
【问题描述】:
我认为 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();
【问题讨论】:
标签: codenameone