EyelidFieldManager不显示底部停靠

时间:2012-05-14 11:31:07

标签: blackberry blackberry-eclipse-plugin blackberry-jde

我在我的Blackberry应用的EyelidFieldManager上使用了MainScreen。这是代码

EyelidFieldManager manager = new EyelidFieldManager();

HorizontalFieldManager buttonFieldSet = new HorizontalFieldManager(USE_ALL_WIDTH);
buttonFieldSet.addAll(new ButtonField[] {new ButtonField("One"), new ButtonField("Two"), new ButtonField("Three")});

manager.addBottom(buttonFieldSet);
manager.setEyelidDisplayTime(3000);

add(manager);

屏幕底部没有显示任何内容,但当我将行manager.addBottom(buttonFieldSet)更改为manager.addTop(buttonFieldSet)时,HorizontalFieldManager会显示在顶部。

为什么会这样?为什么EyelidFieldManager能够显示HorizontalFieldManager何时停靠在顶部,而不是当它停靠在底部时。

1 个答案:

答案 0 :(得分:1)

嘿,即使我目前正在与眼睑现场经理一起工作,我正在完美地获得底部码头。 检查一下

     // Add components to the south eye-lid of the blinker
    _eyelidFieldManager.addBottom(new LabelField(" Send Report as: ",LabelField.FIELD_HCENTER | LabelField.NON_FOCUSABLE));
    HorizontalFieldManager buttonPanel = new HorizontalFieldManager(Field.FIELD_HCENTER | Field.USE_ALL_WIDTH);
    buttonPanel.add(new ButtonField("One"));
    buttonPanel.add(new ButtonField("Two"));
    buttonPanel.add(new SimpleButton("Three"));
    _eyelidFieldManager.addBottom(buttonPanel);

Eyelid Field经理的定义如下:

    private EyelidFieldManager _eyelidFieldManager; 

然后这个_eyelidFieldManager = new EyelidFieldManager();

您可以在此处参考我的完整代码,我已尝试在标签中使用它们 Usage of vertical field manager with eyelid field manager in blackberry 希望它有所帮助。