I develop application which has webview and imageview(as toogle button), if button clicked then webview will be closed, if button clicked again, then webview will be opened. Is it possible in android? see the circle red with up arrow which can hide and unhide above banner My reference like this application
Add a close button and on its click set: webview. setVisibility(View. INVISIBLE); webview.
This interface was deprecated in API level 12. This interface is now obsolete.
To detect and intercept any redirection from WebView , we can use shouldOverrideUrlLoading and return true if it is supported to redirect into native page so that WebView stop the URL redirection in the web page and stay in the current page.
Android WebView is a system component for the Android operating system (OS) that allows Android apps to display content from the web directly inside an application.
for hide the webview
mWebView.setVisibility(View.GONE);
for show the webview
mWebView.setVisibility(View.VISIBLE);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With