Code example for WindowManager

Methods: removeView

0
 
		windowMgr.addView(view, wmParams);
	} 
 
	public void hide() { 
		windowMgr.removeView(view);
	} 
 
	public void setNewView(View view, int x, int y) {
		hide(); 
		initView(view);
		show(x, y);
	} 
 
	@Override 
	public boolean onTouch(View v, MotionEvent event) {
		final int action = event.getAction();
 
		float x = event.getX();
		float y = event.getY();
Connect your IDE to all the code out there  Get Codota for Java