private void updateImage(String userLogo) { int width = AppContext.getDimensionPixelSize(R.dimen.image_width); BitmapLoaderManager.getInstance() .loadBitmap( ImageSizeUtils.get140x140(userLogo), mUserLogo, width, width, AppContext.getBitmap(R.drawable.icon_66x66)); }
private void initLogo(Message item, View view) { ViewTag tag = (ViewTag) view.getTag(); String uid = item.getUid(); String currentUid = UserInfo.getInstance().getUid(); int width = AppContext.getDimensionPixelSize(R.dimen.msg_time_size); if (currentUid.equalsIgnoreCase(uid)) { BitmapLoaderManager.getInstance() .loadBitmap( ImageSizeUtils.get96x96(UserInfo.getInstance().getUserLogo()), tag.icon, width, width, AppContext.getBitmap(R.drawable.icon_96x96)); } else { BitmapLoaderManager.getInstance() .loadBitmap( ImageSizeUtils.get96x96(FriendFacade.getInstance().getFriendLogo(uid)), tag.icon, width, width, AppContext.getBitmap(R.drawable.icon_96x96)); } }