开发者

highlight the word on longpress android

开发者 https://www.devze.com 2023-01-22 13:46 出处:网络
Hello In my android application i am using a webview to display apage of contents . What i require is like if the user longpress on a word then that particular word s开发者_开发知识库hould be highligh

Hello In my android application i am using a webview to display apage of contents . What i require is like if the user longpress on a word then that particular word s开发者_开发知识库hould be highlighted and should be highlighted even if the user reloads the app again.

Is there any way that i can get this done in android.

Please forward your valuable suggestions.

Thanks in advance:)


Putting it in a WebView is what will make this tricky, if it were just a regular view I would say extend TextView and implement onLongClickListener for it as well. Not sure how to squeeze this into an existing webview though :/

0

精彩评论

暂无评论...
验证码 换一张
取 消