0
		} 
		 
		onShow(); 
 
		if (background == null) {
			window.setBackgroundDrawable(new BitmapDrawable());
		} else { 
			window.setBackgroundDrawable(background);
		} 
 
		// if using PopupWindow#setBackgroundDrawable this is the only values of the width and hight that make it work 
		// otherwise you need to set the background of the root viewgroup 
		// and set the popupwindow background to an empty BitmapDrawable 
		 
		window.setWidth(WindowManager.LayoutParams.WRAP_CONTENT);
		window.setHeight(WindowManager.LayoutParams.WRAP_CONTENT);
		window.setTouchable(true);
		window.setFocusable(true);
		window.setOutsideTouchable(true);
 
		window.setContentView(root);
	} 
 
	public void setBackgroundDrawable(Drawable background) {
		this.background = background;
	}