Java Code Examples for net.bither.bitherj.core.Address#equals()
The following examples show how to use
net.bither.bitherj.core.Address#equals() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DialogSelectChangeAddress.java From bither-android with Apache License 2.0 | 5 votes |
private void loadData() { addresses.clear(); addresses.add(fromAddress); List<Address> all = AddressManager.getInstance().getAllAddresses(); for (Address a : all) { if (!a.equals(fromAddress)) { addresses.add(a); } } fl.getLayoutParams().height = getFlHeight(); adapter.notifyDataSetChanged(); }
Example 2
Source File: DialogSelectChangeAddress.java From bither-android with Apache License 2.0 | 5 votes |
@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_change_address, null); h = new ViewHolder(convertView); convertView.setTag(h); } Address a = getItem(position); h.tvAddress.setText(a.getShortAddress()); if (a.isHDM()) { h.ivType.setImageResource(R.drawable.address_type_hdm); } else if (a.hasPrivKey()) { h.ivType.setImageResource(R.drawable.address_type_private); } else { h.ivType.setImageResource(R.drawable.address_type_watchonly); } if (a.equals(changeAddress)) { h.ivCheck.setVisibility(View.VISIBLE); } else { h.ivCheck.setVisibility(View.INVISIBLE); } convertView.setOnClickListener(new ListItemClick(a)); return convertView; }