Home > front end >  Webview cuts off long urls incorrectly
Webview cuts off long urls incorrectly

Time:11-24

In my case WebView has no issues wrapping sentences which have spaces in them, but issue occurs when long url is present.

I have added a screenshot below (blacked out some parts for privacy). If you look at the url part - that is the issue. The url here should be enter image description here

CodePudding user response:

You need to set horizontal scroll to WebView. And webpage should be responsive to fit in mobile width.

CodePudding user response:

try to set wide viewport for fitting whole content inside

WebSettings settings = webView.getSettings();
settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true); // also worth trying

besides that page should be responsive and be able to fit to mobile screens

  • Related