package com.joe.print.mvp.ui.adapter;

import android.graphics.Bitmap;
import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.joe.print.R;

import java.util.List;

public class PrintFileBitmapAdapter extends BaseQuickAdapter<Bitmap, BaseViewHolder> {

    public PrintFileBitmapAdapter(@Nullable List<Bitmap> data) {
        super(R.layout.print_fail_img_item, data);

    }

    @Override
    protected void convert(BaseViewHolder helper, Bitmap item) {
        ((ImageView) helper.getView(R.id.iv_print_fail)).setImageBitmap(item);
    }
}
