Code example for FrameLayout

Methods: requestFocus

0
		Activity a = UnityPlayer.currentActivity;
		a.runOnUiThread(new Runnable() {public void run() {
 
			if (visibility) {
				mWebView.setVisibility(View.VISIBLE);
				layout.requestFocus();
				mWebView.requestFocus();
			} else { 
				mWebView.setVisibility(View.GONE);
			} 
 
		}}); 
	} 
} 
Experience pair programming with AI  Get Codota for Java