Dear All,
I have a large dictionary database with many string records like the following:
Loading such a record to a "normal" Webview has no problem, it will display correctly. But I want the user can click any word of the text on webview to search further (or few words that I format before loading string to the webview). This is a normal behaviour that any dictionary app can do. But I have very little knowledge on this. I have spent a week to read hundred of posts related to Webview, WebviewExtras, FlingableWebview, AJWebKit etc. but could not figure out which kind of webview I need to use? Thank you very much for your help.
NOTE. I cannot use LabelExtras neither CSBuilder, BCText as I have to modify a lot of records and it may cause errors
Best
I have a large dictionary database with many string records like the following:
B4X:
Dim HtmlString As String ="know-how <font color=red size=+2>know-how\n</font><br><font color=black><b>ˈknow-how</b> <font color=rosybrown>[</font><font color=darkslategray><b>know-how</b></font><font color=rosybrown>]</font> " _
& "<i>BrE</i> <i>NAmE</i> <font color=orange> noun</font> <font color=darkgray> </font><font color=orangered>uncountable</font> <font color=darkgray> (</font><font color=rosybrown>informal</font><font color=darkgray>)</font><br>knowledge of how to do sth and experience in doing it<br><br><font color=forestgreen>• </font>" _
& "<font color=forestgreen>We need skilled workers and technical know-how. </font> <br><br> <font color=darkslategray><u>Example Bank:</u></font><br><br><font color=forestgreen>• </font><font color=forestgreen>know-how in various high-tech fields </font><br><br><font color=forestgreen>• </font>" _
& "<font color=darkgray> </font><font color=forestgreen>to acquire a little know-how about the job </font>\n</font><br>"
WebView1.LoadHtml(HtmlString)
Loading such a record to a "normal" Webview has no problem, it will display correctly. But I want the user can click any word of the text on webview to search further (or few words that I format before loading string to the webview). This is a normal behaviour that any dictionary app can do. But I have very little knowledge on this. I have spent a week to read hundred of posts related to Webview, WebviewExtras, FlingableWebview, AJWebKit etc. but could not figure out which kind of webview I need to use? Thank you very much for your help.
NOTE. I cannot use LabelExtras neither CSBuilder, BCText as I have to modify a lot of records and it may cause errors
Best
Last edited: