private void initializeContentView() {
        if (null != mContentView) {
            mContentView.setClickable(true);
            mContentView.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    if (null != mPopupWindow)
                        mPopupWindow.dismiss();
                }
            });
        }
    }
private void initializeContentView ( ) { if ( null != mContentView ) { mContentView . setClickable ( true ) ; mContentView . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { if ( null != mPopupWindow ) mPopupWindow . dismiss ( ) ; } } ) ; } }
设置内容视图可点击