0
            throw new IllegalStateException("setContentView was not called with a view to display.");
        onShow(); 
        if(background == null)
            window.setBackgroundDrawable(new BitmapDrawable());
        else 
            window.setBackgroundDrawable(background);
        window.setWidth(-2);
        window.setHeight(-2);
        window.setTouchable(true);
        window.setFocusable(true);
        window.setOutsideTouchable(true);
        window.setContentView(root);
    } 
 
    public void setBackgroundDrawable(Drawable drawable)
    { 
        background = drawable;
    } 
 
    public void setContentView(int i)
    { 
        setContentView(((LayoutInflater)anchor.getContext().getSystemService("layout_inflater")).inflate(i, null));
    } 
 
    public void setContentView(View view)
    { 
        root = view;
        window.setContentView(view);
    } 
 
    public void setOnDismissListener(android.widget.PopupWindow.OnDismissListener ondismisslistener)
    { 
        window.setOnDismissListener(ondismisslistener);
    } 
 
    public void showDropDown() 
    { 
        showDropDown(0, 0); 
    } 
 
    public void showDropDown(int i, int j)
    { 
        preShow(); 
        window.setAnimationStyle(0x7f08001f);
        window.showAsDropDown(anchor, i, j);
    } 
 
    public void showLikeQuickAction() 
    { 
        showLikeQuickAction(0, 0);