开发者

hiding menu on click

开发者 https://www.devze.com 2022-12-30 07:50 出处:网络
I am using NullField() in one of my screen so that the default focus should not b开发者_Python百科e on any of the button . but when i am clicking on the screen where no field is there , menu screen is

I am using NullField() in one of my screen so that the default focus should not b开发者_Python百科e on any of the button . but when i am clicking on the screen where no field is there , menu screen is being displayed. i dont want that menu screen to be poped up tough it should open when i click menu button.

Thanks alot


override method.

protected boolean navigationClick(int status, int time) {
            Field focus = UiApplication.getUiApplication().getActiveScreen()
                    .getLeafFieldWithFocus();
            if (focus instanceof NullField) {
                return true;
            }
            return super.navigationClick(status, time);
        }

Note:This code is only for giving you hint.

0

精彩评论

暂无评论...
验证码 换一张
取 消