0
		if (root == null) {
			throw new IllegalStateException(
					"setContentView was not called with a view to display."); 
		} 
		// 定义宽度 
		window.setWidth(WindowManager.LayoutParams.WRAP_CONTENT);
		// 定义高度 
		window.setHeight(WindowManager.LayoutParams.WRAP_CONTENT);
		// 可以触摸 
		window.setTouchable(true);
		// 可以获取焦点 
		window.setFocusable(true);
		// 窗口外包也可以触摸 
		window.setOutsideTouchable(true);
		// 设置窗口的内容 
		window.setContentView(root);
		// 按制定位置显示窗口 
		window.showAtLocation(this.anchor, Gravity.NO_GRAVITY, x, y);
	} 
 
	/** 弹出popwindow */ 
	public void show(int x, int y) {
		this.root = getContentView();