public DialogBalanceDetail(Context context, AddressInfo info) {
   super(context);
   setContentView(R.layout.dialog_balance_detail);
   tvTransactionCount = (TextView) findViewById(R.id.tv_transaction_count);
   tvReceived = (TextView) findViewById(R.id.tv_received);
   tvSent = (TextView) findViewById(R.id.tv_sent);
   tvTransactionCount.setText(Integer.toString(info.getTxCount()));
   tvReceived.setText(GenericUtils.formatValueWithBold(info.getReceived()));
   tvSent.setText(GenericUtils.formatValueWithBold(info.getSent()));
 }
 @Override
 public View getView(int position, View convertView, ViewGroup parent) {
   if (inflater == null) {
     inflater = LayoutInflater.from(getContext());
   }
   ViewHolder h;
   if (convertView != null
       && convertView.getTag() != null
       && convertView.getTag() instanceof ViewHolder) {
     h = (ViewHolder) convertView.getTag();
   } else {
     convertView = inflater.inflate(R.layout.list_item_select_address_to_send, null);
     h = new ViewHolder(convertView);
     convertView.setTag(h);
   }
   AddressBalance a = getItem(position);
   h.tvAddress.setText(a.address.getShortAddress());
   h.tvBalance.setText(GenericUtils.formatValueWithBold(a.balance));
   if (a.address.hasPrivKey()) {
     h.ivType.setImageResource(R.drawable.address_type_private);
   } else {
     h.ivType.setImageResource(R.drawable.address_type_watchonly);
   }
   h.ibtnAddressFull.setVisibility(View.GONE);
   convertView.setOnClickListener(new ListItemClick(a));
   return convertView;
 }
 public DialogSendResult(Context context, String address, BigInteger btc, BigInteger fee) {
   super(context);
   setContentView(R.layout.dialog_send_result);
   TextView tvAddress = (TextView) findViewById(R.id.tv_address);
   TextView tvBtc = (TextView) findViewById(R.id.tv_btc);
   TextView tvFee = (TextView) findViewById(R.id.tv_fee);
   Button btnClose = (Button) findViewById(R.id.btn_close);
   tvAddress.setText(address);
   tvBtc.setText(GenericUtils.formatValueWithBold(btc.longValue()));
   tvFee.setText(GenericUtils.formatValueWithBold(fee.longValue()));
   btnClose.setOnClickListener(
       new View.OnClickListener() {
         @Override
         public void onClick(View v) {
           dismiss();
         }
       });
 }