如何在android onTouchEvent中使用注释突出显示文本?

发布于 2025-01-02 23:25:42 字数 60 浏览 2 评论 0原文

我想使用 android onTouchEvent 中的注释突出显示文本。任何人都知道此方法的示例或示例。

I want to highlight the text using annotation in android onTouchEvent.can anyone know the sample or example for this method.

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

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

发布评论

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

评论(1

绝影如岚 2025-01-09 23:25:42

不确定我是否正确地回答了问题。但似乎你可以在这里使用 spannable 。
例如,检查 stackoverflow 中的此链接:

有关跨度和跨度的示例可跨越

Not sure if I got the question correctly. but seems you can use spannable here.
For eg check this link in stackoverflow:

example about spanned & spannable

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