public void setData(ReciveRedPacket info,String name ,String tip) {
tv_money.setText(info.getMoney()+"");
String path = info.getImgUrl();
if (!path.contains("http://")){
path = BuildConfig.QiniuBase + path;
}
Glide.with(this.getActivity()).load(path).asBitmap().centerCrop().into(new BitmapImageViewTarget(img_icon) {
@Override
protected void setResource(Bitmap resource) {
RoundedBitmapDrawable circularBitmapDrawable =
RoundedBitmapDrawableFactory.create(getActivity().getResources(), resource);
circularBitmapDrawable.setCircular(true);
img_icon.setImageDrawable(circularBitmapDrawable);
}
});
tv_name.setText(name+"的红包");
// EMTextMessageBody txtBody = (EMTextMessageBody) message.getBody();
// Spannable span = EaseSmileUtils.getSmiledText(this.getActivity(), txtBody.getMessage());
// 设置内容
tv_tip.setText(tip);
}
RedpacketInfoDelegate.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:GCSApp
作者:
评论列表
文章目录