Answer the question
In order to leave comments, you need to log in
How to display part of a web page?
android studio how to display part of a webpage in a webview
Answer the question
In order to leave comments, you need to log in
final WebView webview = (WebView)findViewById(R.id.browser);
webview.getSettings().setJavaScriptEnabled(true);
webview.setWebViewClient(new WebViewClient() {
@Override
public void onPageFinished(WebView view, String url)
{
webview.loadUrl("javascript:(function() { " +
"document.getElementsByTagName('header')[0].style.display="none"; " +
"})()");
}
});
webview.loadUrl("http://code.google.com/android");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question