Blackberry UI - 如何在文本中嵌入链接

发布于 2025-01-06 02:21:28 字数 414 浏览 3 评论 0原文

我正在制作一个 BlackBerry 应用程序,支持 OS 4.5 及更高版本,我想在屏幕上的一行文本中嵌入一些链接。像这样 -

text text text link1 text text link2 text

我该怎么做?尝试使用 4 个单独的 ActiveRichTextFields,但问题是如何使 link1 n link2 focus-sable 作为一个单词? setChangeListener(this) 和 setFocusListener(this.getFocusListener()) 似乎没有做到这一点。如何捕获链接上的点击事件以将其重定向到网页?

I am making a BlackBerry app, supporting OS 4.5 and later, where I want to embed some links within a line of text on the screen. Like this -

text text text link1 text text link2 text

How do I do it? Tried using 4 seperate ActiveRichTextFields but the problem is how do I make link1 n link2 focus-sable as a word? setChangeListener(this) and setFocusListener(this.getFocusListener()) doesnt seem to do the trick. And how do I capture the click event on the links to redirect it to the webpages?

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

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

发布评论

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

评论(1

陈年往事 2025-01-13 02:21:28

查看超链接 示例由 RIM 提供。我想这肯定会对你有帮助。

Take a look at HyperLink example provides By RIM . I think that will surely help you.

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