问题
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);
}
}
});
回答1:
I'm not sure why this fails but a better approach would be defining the theme constant scrollVisibleBool=false
.
来源:https://stackoverflow.com/questions/45659299/codename-one-scrollbar-coming-back