コード例 #1
0
 @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);
   }
 }
コード例 #2
0
 public void open() {
   BGASelectView.closeKeyboard(mActivity);
   BGASelectView.closeKeyboard(mDialog);
   postDelayed(mShowPwTask, 200);
 }