2012-05-14 98 views
1

我在我的黑莓應用程序的MainScreen上使用EyelidFieldManager。這是在屏幕的底部EyelidFieldManager不顯示底部底座

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,當它停靠在頂部而不是停靠在底部時。

+0

請參閱本http://rincethomas.blogspot.in/2012/04/display-toolbar-with-auto-closing.html – Signare

+0

變化注意到,我仍然得到同樣的結果。 –

+0

嘗試setStatus(bottomEyelidFieldManager); – Signare

回答

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); 

眼瞼領域經理已經定義是這樣的:

private EyelidFieldManager _eyelidFieldManager; 

,然後將此_eyelidFieldManager =新EyelidFieldManager();

你可以參考我的完整代碼在這裏我哪裏有使用它們的標籤 Usage of vertical field manager with eyelid field manager in blackberry 希望它可以幫助內接受審判。