代号一个滚动条回来了 [英] Codename one scrollbar coming back
本文介绍了代号一个滚动条回来了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我发送新的Android版本时,滚动条又回来了。我被添加了这段代码以隐藏滚动条,并且一切都很好,我没有做任何更改。
Scrollbar coming back when I send new Android build. I was add this code to hide scrollbar and everything fine, I didn't change anything.
UIManager.getInstance().setLookAndFeel(new DefaultLookAndFeel(UIManager.getInstance()) {
@Override
public void bind(Component cmp) {
if (cmp instanceof Container) {
cmp.setScrollVisible(false);
}
}
});
推荐答案
我不确定为什么会失败,但是更好方法是定义主题常量 scrollVisibleBool = false
。
I'm not sure why this fails but a better approach would be defining the theme constant scrollVisibleBool=false
.
这篇关于代号一个滚动条回来了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文