【问题标题】:Scrollable container not scrolling on top of layered layout可滚动容器不在分层布局之上滚动
【发布时间】:2017-10-23 11:21:47
【问题描述】:

在下面的代码中,我根本无法让可滚动容器滚动。我错过了什么?

    public void start() {
    if(current != null){
        current.show();
        return;
    }
    Form f = new Form(new LayeredLayout());
    Container cont = new Container(new BoxLayout(BoxLayout.X_AXIS));
    cont.setScrollableX(true);
    for (int x=0; x<20; x++) {
        Label lbl = new Label();
        FontImage.setMaterialIcon(lbl, FontImage.MATERIAL_APPS, 20);
        cont.add(lbl);
    }
    f.addAll(new Container(), BorderLayout.south(cont));
    f.show();
}

【问题讨论】:

    标签: codenameone


    【解决方案1】:

    这是史蒂夫在周五最新更新发布后修复的一个错误。我们将在本周末推出包含此修复程序的更新。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-01-19
      • 2018-09-15
      • 1970-01-01
      • 1970-01-01
      • 2021-10-12
      • 2016-12-02
      • 2021-06-27
      • 1970-01-01
      相关资源
      最近更新 更多