BlackBerry touchEvent outside Field triggers fieldChanged

前端 未结 3 1894
滥情空心
滥情空心 2021-01-03 05:32

I am having a problem where if i press/touch outside of a field the fieldChanged() event is triggered for the field that has focus.

The layout for my

3条回答
  •  情书的邮戳
    2021-01-03 06:02

    The trick is not to override touchEvent(TouchEvent message) at all. :)

    Just override navigationClick(int status, int time) for the field you want to handle the click (just to be clear - no need to do this for ButtonField - it works nice as is). The BB UI framework will call navigationClick(int status, int time) when user clicks your field on a touch screen. As well it'll work for a non-touch screen devices.

提交回复
热议问题