code: 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();
                  }
              });
          }
      }
docs: 设置内容视图可点击