【问题标题】:Codename one label color change代号一标签颜色变化
【发布时间】:2017-05-07 11:40:03
【问题描述】:

我正在寻找如何更改代号一上的标签颜色。

我试过这个,但根本没用:

Labelname.getSelectedStyle().setFgColor(ColorUtil.CYAN);

【问题讨论】:

    标签: colors codenameone


    【解决方案1】:
    Label testLabel = new Label("test");
    testLabel.getAllStyles.setFgColor(0xff000);
    

    使用上述代码。它会改变标签颜色

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-27
      • 2019-07-24
      • 2018-01-23
      • 1970-01-01
      • 2018-12-02
      • 1970-01-01
      相关资源
      最近更新 更多