Search in sources :

Example 1 with DMBean

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());
}
Also used : UserBean(org.qii.weiciyuan.bean.UserBean) DMBean(org.qii.weiciyuan.bean.DMBean)

Aggregations

DMBean (org.qii.weiciyuan.bean.DMBean)1 UserBean (org.qii.weiciyuan.bean.UserBean)1