package com.daya.live_teaching.im.provider;

import io.rong.imkit.conversation.messgelist.provider.TextMessageItemProvider;

/**
 * 自定义文本消息样式
 * 修改了背景图
 */
public class ClassTextMessageItemProvider extends TextMessageItemProvider {
//    private static int padding;



//    static {
//        padding = DisplayUtils.dip2px(BaseApplication.getApplication().getApplicationContext(), 12);
//    }
//
//    @Override
//    protected void bindMessageContentViewHolder(ViewHolder holder, ViewHolder parentHolder, TextMessage message, UiMessage uiMessage, int position, List<UiMessage> list, IViewProviderListener<UiMessage> listener) {
//        super.bindMessageContentViewHolder(holder, parentHolder, message, uiMessage, position, list, listener);
//
//
////        AutoLinkTextView message = v.findViewById(android.R.id.text1);
////        message.setPadding(padding, padding, padding, padding);
////        message.setBackgroundResource(R.drawable.bg_conversation_item_message);
//    }
//
//    @Override
//    public void initUserInfo(ViewHolder holder, UiMessage uiMessage, int position, IViewProviderListener<UiMessage> listener, boolean isSender) {
//        super.initUserInfo(holder, uiMessage, position, listener, isSender);
//    }
}
