container.setLeadComponent(...) 在代号一中
container.setLeadComponent(...) in Codename One
这个问题主要是理论性的。在代号一的手册中,我已经阅读了有关 "Lead Component" 的部分:
https://www.codenameone.com/manual/misc-features.html#lead-component-section
似乎 Container
的(唯一?)"leader" 组件是 Button
。是否有其他情况选择不是 Button
的领导者组件?
这是迄今为止最常见的,但我看到开发人员使用 TextArea
作为引导并且它起作用了。您还可以使用其他按钮子类,例如 CheckBox
、RadioButton
等
这个问题主要是理论性的。在代号一的手册中,我已经阅读了有关 "Lead Component" 的部分: https://www.codenameone.com/manual/misc-features.html#lead-component-section
似乎 Container
的(唯一?)"leader" 组件是 Button
。是否有其他情况选择不是 Button
的领导者组件?
这是迄今为止最常见的,但我看到开发人员使用 TextArea
作为引导并且它起作用了。您还可以使用其他按钮子类,例如 CheckBox
、RadioButton
等