use of org.qii.weiciyuan.bean.DMBean in project weiciyuan by qii.
the class DMConversationAdapter method bindViewData.
protected void bindViewData(DMViewHolder holder, int position) {
final DMBean msg = bean.get(position);
UserBean user = msg.getUser();
if (user != null) {
buildAvatar(holder.avatar, position, user);
} else {
holder.avatar.setVisibility(View.INVISIBLE);
}
if (!TextUtils.isEmpty(msg.getListViewSpannableString())) {
holder.content.setText(msg.getListViewSpannableString());
} else {
TimeLineUtility.addJustHighLightLinks(msg);
holder.content.setText(msg.getListViewSpannableString());
}
String time = msg.getListviewItemShowTime();
if (!holder.time.getText().toString().equals(time)) {
holder.time.setText(time);
}
holder.time.setTag(msg.getId());
}