@Override public boolean onChildClick( ExpandableListView parent, View v, int groupPosition, int childPosition, long id) { // TODO Auto-generated method stub if (v instanceof LinearLayout) { TagContactItem tcItem = (TagContactItem) v.getTag(R.string.tag_contact_item); // CheckBox cbox = (CheckBox) v.findViewById(R.id.contact_cbox); // String sname = (String) cbox.getTag(R.string.tag_item_name); // String semail = (String) cbox.getTag(R.string.tag_item_email); ArrayList<String> contactList = new ArrayList<String>(1); StringBuilder sb = new StringBuilder(); if (tcItem.strName != null && tcItem.strName.length() > 0) { sb.append(tcItem.strName); sb.append("<"); sb.append(tcItem.strEmail); sb.append(">"); } else { sb.append(tcItem.strEmail); } contactList.add(sb.toString()); Intent dit = new Intent( this, IOUtil.checkDemoCount() ? ComposeMailProActivity.class : ComposeMailActivity.class); dit.putExtra(D.INTENT_EXTRA_CURRENT_ACCOUNT, HomeGroup.strAccount); dit.putStringArrayListExtra(BaseComposeMailActivity.INTENT_EXTRA_MULTI_CONTACT, contactList); startActivity(dit); } return false; }
@Override public void onClick(View v) { // TODO Auto-generated method stub Intent it = null; switch (v.getId()) { case R.id.bt_send_safetype: safeDialog.setIOContent( R.string.popup_dialog_title_select, strSafetype, strSafetype[RegisterAccount.rgstAct.sedSafetype], new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub int index = (Integer) v.getTag(R.string.tag_popup_radiodialog_index); RegisterAccount.rgstAct.sedSafetype = index; btSafeType.setText(strSafetype[index]); safeDialog.dismiss(); } }); safeDialog.show(); break; case R.id.back_ibt: finish(); break; case R.id.next_ibt: if (checkAccountInfor()) { doNext(); } else { IOUtil.toastShow(R.string.register_config_send_host); } break; } }