Html page content on being load Webview using LoadDataWithBaseURL and it displays a page which I need. In this page when I click a button, it takes me to second page. Only second page having problem, this is just displaying plain html controls, there is no CSS.
Left screenshot is coming and right one is expected
Below is the Webview sample code
Control.SetWebViewClient(new JavascriptWebViewClient(this, $"javascript: {JavascriptFunction}"));
Control.AddJavascriptInterface(new JSBridge(this), "jsBridge");
Control.Settings.AllowFileAccess = true;
Control.Settings.JavaScriptEnabled = true;
Control.Settings.AllowFileAccessFromFileURLs = true;
Control.Settings.AllowUniversalAccessFromFileURLs = true;
Control.Settings.AllowContentAccess = true;
Control.Settings.DomStorageEnabled = true;
Control.SetWebChromeClient(new WebChromeClient());
Control.LoadDataWithBaseURL("https://service.force.com/embeddedservice/5.0/esw.min.js", content1, "text/html; charset=utf-8", "UTF-8", null);
here the content loading on Webview initially which has html and JavaScript.
How can I fix this issue ?
from Webview is not rendering CSS Styles with LoadDataWithBaseURL only loading plain HTML in Android

No comments:
Post a Comment