MathView icon indicating copy to clipboard operation
MathView copied to clipboard

WebViewClient not work

Open QuanKun8296 opened this issue 6 years ago • 5 comments

Hi! I'm using MathView for show html mathml and an url, with WebView i can click to url but it not work when i set view is MathView. Can you tell me how i can set webViewClient for catch event click url like WebView. Best Regards!

QuanKun8296 avatar Nov 15 '19 08:11 QuanKun8296

Have you tried to override shouldInterceptRequest method?

DrunkenElf avatar Nov 15 '19 08:11 DrunkenElf

I tried and it's still not work. Are you made it work? Please give me example for this simple html "<p>See more:<a href="https://vi.wikipedia.org/wiki/MathML">Click here</a></p>"

QuanKun8296 avatar Nov 15 '19 09:11 QuanKun8296

I think you will not be able to do it with this library, cuz it renders formulas with chunk and just load data(like simple string). That's why the method are called <setText>. You can try to inject mathjax script "

See more:Click here

". This will also help you "

See more:Click here

".

DrunkenElf avatar Nov 15 '19 09:11 DrunkenElf

Thanks for your reply. BTW, your code which inject mathjax script has been changed and i can't see the construction.

QuanKun8296 avatar Nov 15 '19 10:11 QuanKun8296

I'll try to send it to you, but now I don't have enough time for time

DrunkenElf avatar Nov 15 '19 10:11 DrunkenElf