Code example for View

Methods: setVisibility

0
		if (mCustomView == null) {
			return; 
		} 
 
		// Hide the custom view and remove it from its container. 
		mCustomView.setVisibility(View.GONE);
		mCustomViewContainer.removeView(mCustomView);
		mCustomView = null;
		mCustomViewContainer.setVisibility(View.GONE);
		mCustomViewCallback.onCustomViewHidden();
 
		tiWebView.getWebView().setVisibility(View.VISIBLE);
	} 
 
	public boolean interceptOnBackPressed() 
	{ 
		if (mCustomView != null) {
			onHideCustomView(); 
			if (Log.isDebugModeEnabled()) { 
				Log.d(TAG, "WebView intercepts the OnBackPressed event to close the full-screen video.");
			}