MsgViewHolderSwitchKeFuTips.java 1.36 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
package com.yidianling.im.session.viewholder;

import android.widget.TextView;

import com.yidianling.im.R;
import com.yidianling.im.session.extension.CustomAttachmentSwitchKeFuTips;
import com.yidianling.nimbase.common.ui.recyclerview.adapter.BaseMultiItemFetchLoadAdapter;
import com.yidianling.uikit.business.session.viewholder.MsgViewHolderBase;

/**
 * @author huozhiliang
 * @描述:
 * @Copyright Copyright (c) 2018
 * @Company 壹点灵
 * @date 2021/1/26
 */
public class MsgViewHolderSwitchKeFuTips extends MsgViewHolderBase {
    private TextView textViewTips;
    public MsgViewHolderSwitchKeFuTips(BaseMultiItemFetchLoadAdapter adapter) {
        super(adapter);
    }

    @Override
    protected int getContentResId() {
        return R.layout.im_nim_switch_kefu_tips;
    }

    @Override
    protected void inflateContentView() {
        textViewTips=findViewById(R.id.tips_kefu);
    }

YKai committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
    @Override
    protected boolean isShowBubble() {
        return false;
    }

    @Override
    protected boolean isShowHeadImage() {
        return false;
    }

    @Override
    protected boolean isMiddleItem() {
        return true;
    }

48 49 50 51 52 53
    @Override
    protected void bindContentView() {
        CustomAttachmentSwitchKeFuTips customBusinessCard = (CustomAttachmentSwitchKeFuTips) message.getAttachment();
        textViewTips.setText(customBusinessCard.to_content);
    }
}