Beispiel #1
0
 // 弹出充值金额选择菜单
 private void showPopupViews(View anchor, String[] textArray, int last_index) {
   titlePopup = new PopMenu(WapBankRecharge.this, false);
   titlePopup.setLayout(
       R.layout.pop_grid_view, textArray, null, 1, screenWidth - 20, last_index, false, true);
   titlePopup.setButtonClickListener(this);
   int xoff = -(titlePopup.getWidth() / 2 - moneySpinner.getWidth() + moneySpinner.getWidth() / 2);
   titlePopup.showAsDropDown(anchor, xoff, 0);
 }
Beispiel #2
0
  @Override
  public void setPopMenuButtonClickListener(
      String startDate, String endDate, String dateDuration, int index, String tabName) {

    if (buttonid == R.id.wap_bank_recharge_money) {
      rechargeMoney = alipayToServer[index];
      moneySpinnerText.setText(
          Html.fromHtml("<font color='#9D9D9D'>金额:</font>" + rechargeMoney + "元"));
      money_index_num = index;
    } else if (buttonid == R.id.waprechspinner01) {
      type = wap_type[index];
      bankName = bank[index];
      rechargeMoney = alipayToServer[money_index_num];
      spinnerChoseText.setText(Html.fromHtml("<font color='#9D9D9D'>银行:</font>" + type));
      moneySpinnerText.setText(
          Html.fromHtml("<font color='#9D9D9D'>金额:</font>" + rechargeMoney + "元"));
      last_index_num_bank = index;
    }
    titlePopup.dismiss();
  }