Codename One Strange Screen行为

时间:2016-02-03 00:24:13

标签: screen codenameone custom-component

当我在CN1的模拟器上运行设备时,我看到了不同且奇怪的结果。没有参考屏幕尺寸,参考组件位置,屏幕中间的侧边栏按钮。

我在哪里解决这个问题?

enter image description here

布局树

enter image description here

1 个答案:

答案 0 :(得分:2)

我认为如果你喜欢这种方式,那么它应该可行

Main Form -> Layout=BorderLayout Container1 -> LayoutConstraint=North (set Layout as per your requirement) add those fields (containers/components) that you want as a header Container2 -> LayoutConstraint=Center, Layout=BoxLayoutY Container1TableLayout -> Layout=TableLayout 像你在你的那样制作这个Container1TableLayout并添加你的组件/按钮。

希望它可能有效..

相关问题