gpt4 book ai didi

java - 代号一 : fixed button while scrolling

转载 作者:行者123 更新时间:2023-11-30 10:16:09 25 4
gpt4 key购买 nike

我想创建一个在我的表单中滚动时固定的按钮,它是一个添加按钮

是否可以在代号一的页面中滚动时做一个固定按钮?

enter image description here

最佳答案

当然有很多方法可以做到这一点。在这种情况下,最简单的事情是 FloatingActionButton 所以像这样的东西应该可以正常工作:

FloatingActionButton fab = FloatingActionButton.createFAB(FontImage.MATERIAL_ADD);
fab.bindFabToContainer(myForm);
fab.addActionListener(e -> doThisWhenClicked());

关于java - 代号一 : fixed button while scrolling,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50159751/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com