0
        onShow(); 
 
        if (background == null) {
            mWindow.setBackgroundDrawable(new BitmapDrawable());
        } else { 
            mWindow.setBackgroundDrawable(background);
        } 
 
        mWindow.setWidth(WindowManager.LayoutParams.WRAP_CONTENT);
        mWindow.setHeight(WindowManager.LayoutParams.WRAP_CONTENT);
        mWindow.setTouchable(true);
        mWindow.setFocusable(true);
        mWindow.setOutsideTouchable(true);
 
        mWindow.setContentView(root);
    } 
 
    public void setBackgroundDrawable(Drawable background) {
        this.background = background;
    } 
 
    public void setContentView(View root) {
        this.root = root;
        mWindow.setContentView(root);
    } 
 
    public void setContentView(int layoutResId) {
        LayoutInflater inflater = (LayoutInflater) mAnchor.getContext().getSystemService(
                Context.LAYOUT_INFLATER_SERVICE);
        setContentView(inflater.inflate(layoutResId, null));
    } 
 
    public void showDropDown() { 
        showDropDown(0, 0); 
    } 
 
    public void showDropDown(int x, int y) {
        preShow(); 
        mWindow.setAnimationStyle(android.R.style.Animation_Dialog);
        mWindow.showAsDropDown(mAnchor, x, y);
    } 
 
    public void showLikeQuickAction() { 
        showLikeQuickAction(0, 0); 
    }