Sometimes, when I load my webview with loadUrl, the website is not showing up until I touch the screen or scroll.
It\'s like I have a webview drawing problem.
Make WebView
invisible in your layout:
Now, show it back when onPageFinished
occurs for the fist time:
webView.setWebViewClient(new WebViewClient() {
@Override
public void onPageFinished(WebView view, String url) {
if (webView.getVisibility() != View.VISIBLE) {
webView.setVisibility(View.VISIBLE);
}
}
});