Agoeng Liu Agoeng Liu - 5 months ago 18
Android Question

How to hide unhide webview in android

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 enter image description here

Answer

for hide the webview

mWebView.setVisibility(View.GONE);

for show the webview

mWebView.setVisibility(View.VISIBLE); 
Comments