Code example for ListPopupWindow

Methods: dismissisShowing

0
        return true; 
    } 
 
    public void dismiss() { 
        if (isShowing()) { 
            mPopup.dismiss();
        } 
    } 
 
    public void onDismiss() { 
        mPopup = null;
        mMenu.close();
        if (mTreeObserver != null) {
            if (!mTreeObserver.isAlive()) mTreeObserver = mAnchorView.getViewTreeObserver();
            mTreeObserver.removeGlobalOnLayoutListener(this);
            mTreeObserver = null;
        } 
        mAnchorView.removeOnAttachStateChangeListener(this);
    } 
 
    public boolean isShowing() { 
        return mPopup != null && mPopup.isShowing();
    } 
 
    @Override 
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
        MenuAdapter adapter = mAdapter;
Stop searching for code, let great code find you!  Add Codota to your java IDE