开发者

hiding menu on click

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜