简体   繁体   中英

Blackberry Button not working in HorizontalFieldManager

My workFlow is like this ... I have taken Three HoriZontalManager one for holding the BackgroundImage of the button and two HoriZontalManager to hold the CustomButton and i am adding the main hfm which hold the button and the background image at top and then i have added the list in a VerticalfieldManager but i dont get the button Working the focus always remains on the list Field. Now when I click on the Button the focus always resides on the First row of the list Field so it always show me the picker which is actually i have implemented on the first row of listfield. How can i Solve it .. Thanks in Advanced..

Please help.

I have solved This issue ... I had to check that if the focus is on the button then do my work else the list field will be invoked and it solved the issue. And it works for touchScreen simulator as well as trackpad devices.

protected boolean navigationClick(int status, int time) {

    //      if the row select do something with it 
    //      for first row which is time 

    if(backCustomButton.isFocus())  {
        UiApplication.getUiApplication().pushScreen(new saveScreen());
    }else if (saveCustomButton.isFocus()) {
        Dialog.inform("Save Button on focus");
    }else
    if (_list.getSelectedIndex() == 0){
// Do the ListSpecific things
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM