Code example for FrameLayout

Methods: removeView

0
Activity a = UnityPlayer.currentActivity;
		a.runOnUiThread(new Runnable() {public void run() {
 
			if (mWebView != null) {
				layout.removeView(mWebView);
				mWebView = null;
			} 
 
		}}); 
	} 
 
	public void LoadURL(final String url)
	{ 
		final Activity a = UnityPlayer.currentActivity;
		a.runOnUiThread(new Runnable() {public void run() {
 
			mWebView.loadUrl(url);
 
		}}); 
	}