Code example for QuickContactBadge

Methods: setImageDrawablesetVisibility, assignContactUri

0
				mAvatarView.assignContactFromPhone(contact.getNumber(), true);
			} 
		} else { 
			// TODO get a multiple recipients asset (or do something else) 
			avatarDrawable = sDefaultContactImage;
			mAvatarView.assignContactUri(null);
		} 
		mAvatarView.setImageDrawable(avatarDrawable);
		mAvatarView.setVisibility(View.VISIBLE);
	} 
 
	private void updateFromView() { 
		mFromView.setText(formatMessage());
		updateAvatarView(); 
	} 
 
	public void onUpdate(Conversation updated) {
		mHandler.post(new Runnable() {
			public void run() { 
				updateFromView(); 
			}