Blackberry UI - 如何在文本中嵌入链接
我正在制作一个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看超链接 示例由 RIM 提供。我想这肯定会对你有帮助。
Take a look at HyperLink example provides By RIM . I think that will surely help you.