I'm loading a particular url in a webview. From that URL, I'm going to another webpage/URL. How to disable the header and footer of the second URL?
Asked
Active
Viewed 1,535 times
0
-
AFAIK You cannot do it directly from `WebView` in android. I would suggest to have a javascript function in your webpage and inject javascript function call from `webview` to disable header and footer when function is invoked – Jibran Khan Apr 24 '15 at 07:07
-
Can you please help me with that? code for the js function and also how to inject it in webview – arv Apr 24 '15 at 07:44
-
You can have a look at this answer to see webview javascript call http://stackoverflow.com/questions/21552912/android-web-view-inject-local-javascript-file-to-remote-webpage – Jibran Khan Apr 24 '15 at 10:46