D Declan Well-Known Member Licensed User Longtime User Dec 8, 2016 #1 I am using the following code to Search and Highligh text within a Webview. B4X: Sub FindAll (w As WebView, s As String) As Int Dim r As Reflector r.Target = w Return r.RunMethod2("findAll", s, "java.lang.String") End Sub This works great. How can I clear (remove) the Highlights from the WebView?
I am using the following code to Search and Highligh text within a Webview. B4X: Sub FindAll (w As WebView, s As String) As Int Dim r As Reflector r.Target = w Return r.RunMethod2("findAll", s, "java.lang.String") End Sub This works great. How can I clear (remove) the Highlights from the WebView?
DonManfred Expert Licensed User Longtime User Dec 8, 2016 #2 Based on https://developer.android.com/reference/android/webkit/WebView.html#clearMatches() i guess you should use something like B4X: Sub clearMatches (w As WebView) As Int Dim r As Reflector r.Target = w Return r.RunMethod("clearMatches") End Sub Upvote 0
Based on https://developer.android.com/reference/android/webkit/WebView.html#clearMatches() i guess you should use something like B4X: Sub clearMatches (w As WebView) As Int Dim r As Reflector r.Target = w Return r.RunMethod("clearMatches") End Sub