1

我正在使用EyelidFieldManagerMainScreen的黑莓应用程序。这是代码

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而当它停靠在底部时却不能显示。

4

1 回答 1

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 manager 的定义如下:

    private EyelidFieldManager _eyelidFieldManager; 

然后这个 _eyelidFieldManager = new EyelidFieldManager();

You can refer to my complete code here where i have tried using them within tabs Usage of vertical field manager with eyelid field manager in blackberry Hope it helps.

于 2012-05-14T13:39:44.600 回答