@Override
 public void run() {
   if (mValuePw == null) {
     mValuePw = new PopupWindow(mListView, getWidth(), -2);
     mValuePw.setFocusable(true);
     mValuePw.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
   }
   if (mListView.getAdapter().getCount() > 0) {
     mValuePw.showAsDropDown(BGASelectView.this);
     ViewGroup.MarginLayoutParams layoutParams =
         (ViewGroup.MarginLayoutParams) mValuePw.getContentView().getLayoutParams();
     layoutParams.bottomMargin = BGASelectView.dp2px(getContext(), 10);
   }
 }
 public void open() {
   BGASelectView.closeKeyboard(mActivity);
   BGASelectView.closeKeyboard(mDialog);
   postDelayed(mShowPwTask, 200);
 }