MsgViewHolderSubscriptTime.java 1.9 KB
Newer Older
konghaorui committed
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
package com.yidianling.im.session.viewholder;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

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


/**
 * 开通预约时间提醒
 * Created by harvie on 2017/1/10.
 */

public class MsgViewHolderSubscriptTime extends MsgViewHolderBase {

    private View message_received;
    private TextView tit,content;
    private ImageView img;

    public MsgViewHolderSubscriptTime(BaseMultiItemFetchLoadAdapter adapter) {
        super(adapter);
    }


    @Override
    protected int getContentResId() {
konghaorui committed
30
        return R.layout.im_ui_message_subscript_time;
konghaorui committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
    }

    @Override
    protected void inflateContentView() {
        message_received=findViewById(R.id.message_received);
        tit = findViewById(R.id.packet_title);
        content = findViewById(R.id.text_content1);
        img = findViewById(R.id.packte_im);
    }

    @Override
    protected void bindContentView() {
//        CustomAttachReceivedMoney customAttachReceivedMoney= (CustomAttachReceivedMoney) message.getAttachment();
//        progressDialogFragment= ProgressDialogFragment_.builder().build();
//        orderid=customAttachReceivedMoney.getOrderId();
//        num = customAttachReceivedMoney.getNum();
//        title = customAttachReceivedMoney.getTitle();
//        orPay = customAttachReceivedMoney.getOrPay();
//        if (title!=null)tit.setText(title);
//
        hideItemBg();
    }

    @Override
    protected void onItemClick() {
        //跳转添加预约时间h5
//        Intent intent = new Intent(view.getContext(), H5Activity.class);
//        intent.putExtra("url", Constant.API_HOST_H5+"ex-experts/tm?" + LoginHelper.getInstance().getSuffixNo());
//        view.getContext().startActivity(intent);
    }

}