选择 Blackberry ListField 中的项目

发布于 2024-09-30 11:10:46 字数 303 浏览 0 评论 0原文

我一直在使用这本书作为创建 Blackberry 应用程序的参考。到目前为止,我有一个项目列表,当我选择一个项目时,我会看到侧面菜单,但在我的列表项目旁边:

alt text

只是查看我的方法,我不确定是哪一个导致了此问题,因为我可以从菜单中删除自定义项 (GetValue),并且当我选择列表项时它仍然会出现在此处!

我想我的问题是,如何停止出现此菜单并改为使用方法火?如果需要,我可以提供代码,但我不知道从哪里开始!

谢谢

I've been using this book as reference to creating my Blackberry application. So far I have a list of items and when I select one I get the side menu but next to my list item:

alt text

Just looking through my methods, I'm not sure which one causes this as I can remove the custom item (GetValue) from the Menu and it will still appear here when I select the list item!

I guess my question is, how can I stop this menu appearing and have a method fire instead? I can provide code if necessary but I don't know where to start with this one!

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我是有多爱你 2024-10-07 11:10:46

您可以在调用该方法时显示您的代码吗?

当我重写 ListField 类的 navigationClick 方法(如下面的代码所示)时,它可以正常工作。 (没有弹出菜单)

protected boolean navigationClick(int status, int time){
    return true;

}

Can you show your code when invoking the method.

When I override the navigationClick method of the ListField class like in the code below it works properly. (no menu pops)

protected boolean navigationClick(int status, int time){
    return true;

}

薄情伤 2024-10-07 11:10:46

@ing0

您可以使用 OnMenu() 方法覆盖默认菜单

public boolean onMenu(int i)

{

    return false;

}

@ing0

You can override default menu by using OnMenu() method

public boolean onMenu(int i)

{

    return false;

}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文