package com.gingersoft.gsa.cloud.table.mvp.ui.adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.gingersoft.gsa.cloud.table.R;
import com.gingersoft.gsa.cloud.base.common.bean.PayMethod;

import java.util.List;

import androidx.annotation.Nullable;

/**
 * Created by Wyh on 2020/1/17.
 */
public class BillMethodAdapter extends BaseQuickAdapter<PayMethod, BaseViewHolder> {

    public BillMethodAdapter(@Nullable List<PayMethod> data) {
        super(R.layout.item_bill_method, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PayMethod item) {
        TextView tv_bill_method_name = helper.getView(R.id.tv_bill_method_name);
        tv_bill_method_name.setText(item.getPayName());
        tv_bill_method_name.setTextSize(item.getPayModeSize());
        tv_bill_method_name.setTextColor(item.getPayModeTextColor());
    }

}
