Android 原生函数

发布于 2024-12-14 18:37:33 字数 223 浏览 4 评论 0原文

我正在尝试在 Android 平台上为我的课程项目创建一个主动阅读应用程序原型。我是Android SDK的新手,我不知道如何使用WebView的本机功能,因为我需要使用它们来实现使用手势选择/突出显示/复制文本。我看到 WebView 有一个函数 setSelection 但它是私有的,我无法使用它。

但我想也许有一些我怀念的东西。可能我需要使用其他东西。请给我一些建议、链接、书籍,我可以在其中找到有用的信息。

I'm trying to create an active reading application prototype for my course project in Android platform. I'm new to Android SDK, and I cannot figure out how to use WebView's native functions, because I need to use them to implement selecting / highlighting / copying texts using gestures. I saw that WebView has a function setSelection but it's private and I cannot use it.

But I think may be there is something that I miss. May be I need to use something else. Please, give me some suggestion, links, books where I can find useful information.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文