我有多个表单,在其中一个表单中,我想使用FloatingActionButton
createSubFab
导航到另一个表单。每当我点击subFab
按钮时,它总会重新显示它的父窗体(简要显示另一个窗体并返回其父窗体...如果你眨眼,你会错过它)。
我在2个不同的应用上试过这个,最终结果是一样的。以下是我使用的代码:
FloatingActionButton fab = FloatingActionButton.createFAB(FontImage.MATERIAL_CREATE);
fab.bindFabToContainer(getContentPane());
fab.createSubFAB(FontImage.MATERIAL_CREATE, "Write on public forum").addActionListener(evt -> {
setTransitionOutAnimator(CommonTransitions.createCover(CommonTransitions.SLIDE_VERTICAL, false, 200));
new ForumNewPostForm(f, "Public").show();
});
这可能是一个错误,还是我在这里做错了什么?
答案 0 :(得分:1)
As mentioned by Shai in an email, this is caused by a minor bug on Codename One which has been resolved and will be available on next update.